Here's were the script landed, but in testing it does not work.
However, the script did help me find a major bug that I was able to crush. So now all my towns people don't come to assist the PC in this one silly situation.
So here's where I placed the script. It was placed in my story level:
IF
DB_CheckLevelStart("TheOldRuin")
AND
DB_CurrentLevel("NorthHall")
THEN
GoalCompleted;
IF
GameStarted(_,_)
THEN
CharacterLaunchIterator("Detect_Events_OnCharacterIterate");
IF
StoryEvent((CHARACTERGUID)_Character, "Detect_Events_OnCharacterIterate")
AND
_Character != NULL_00000000-0000-0000-0000-000000000000
AND
CharacterGetDisplayName(_Character,_,_Name)
AND
StringConcatenate("[Detect] Iterator ran on ", _Name, _Message)
THEN
DebugBreak(_Message);
IF
StoryEvent(NULL_00000000-0000-0000-0000-000000000000, "Detect_Events_OnCharacterIterate")
THEN
DebugBreak("[Detect] Character iteration finished.");
testing:
start game run outside the town walls kill something, run back inside town walls, zone into another level. Then zone back to the level we are testing run out to the monster copse and its still there.
Also,
CharacterCreateAtPosition &
TemporaryCharacterCreateAtTrigger
this seems to be a query or something, so I can't just find and replace...
Last edited by Detect; 04/03/18 12:57 PM.