lowleveledclutter Posted September 16, 2013 Posted September 16, 2013 so i've tried to .disable my npc through scripts in topics - game just crashes. i thought it is because i've tried to .disable him while still talking to him, so i tried to make him .cast a spell on himself to create a delay, but that too didn't work. and there's so many types of scripts and so many places to write them into i don't even know if it's possible to be done the way i'm trying to do it.
Lanceor Posted September 17, 2013 Posted September 17, 2013 Perhaps create a dummy quest and use a quest script like this: scriptname NPCDelayedDisappearanceScript short ReadyToDisappear long TimeElapsed BEGIN GAMEMODE if ( ReadyToDisappear == 0 ) Return endif set TimeElapsed to TimeElapsed + GetSecondsPassed if ( TimeElapsed > 30 ) MyNPCRef.disable set ReadyToDisappear to 0 StopeQuest DummyQuestName endif ENDIn your GOODBYE topic, set ReadyToDisappear to 1 and then the quest script will do something 30 seconds later (or whatever period you choose).
lowleveledclutter Posted September 17, 2013 Author Posted September 17, 2013 Thank you for the help! =D
Recommended Posts