From 5e8002e693dc4876d6e0bf81ac3453f0fa206a1d Mon Sep 17 00:00:00 2001 From: Christopher Date: Sat, 30 Jan 2021 05:44:49 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9EChris.MultiNPC.lsl=E2=80=9C=20=C3=A4nd?= =?UTF-8?q?ern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Chris.MultiNPC.lsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Chris.MultiNPC.lsl b/Chris.MultiNPC.lsl index 9bb1329..55ff31c 100644 --- a/Chris.MultiNPC.lsl +++ b/Chris.MultiNPC.lsl @@ -31,12 +31,11 @@ state running { state_entry() { - llSetTimerEvent(1); + llSetTimerEvent(0.3); } timer() { - llSetTimerEvent(1); doNextScriptStep(); } @@ -226,6 +225,8 @@ doNextScriptStep() case "touch": if(!script_touch(currentNPCSlot, currentNPCKey, lineCommandData)) llSay(0, "Script execution in '" + llList2String(lineCommandData, 0) + "' in nc '"+ currentncname +"' on line '" + currentLine + "' failed."); + + currentNPCSlot--; break; case "goto": if(script_goto(currentNPCSlot, currentNPCKey, lineCommandData)) @@ -290,6 +291,7 @@ checkOSPermissions() hardReset() { + llSetTimerEvent(0); integer dataListCount = llGetListLength(m_npcdata); while(dataListCount--) if(checkDataEntryInDataList(m_npcdata, "npc." + dataListCount))