simpler layout for review. I think you mean to call out right off the start that if _zombie is in fact not in the DB, add to DB and spawn the _Zombie?? (logic)we started off with if the PC hit the trigger, call out DB, is the _zombie in DB, then don't do anything. spawn _Zombie.
\head hurts/
Old structure.
IF
CharacterEnteredTrigger(_Character, TRIGGERGUID_*ID*) //checks if the trigger is triggered.
AND
GetPosition(TRIGGERGUID_*ID*, _X, _Y, _Z) //checks the position of the point trigger, were the mob will spawn and returns.
AND
CharacterCreateAtPosition(_X, _Y, _Z, "CHARACTERGUID_*ID*", 1, _Zombie) //Create the Zombie from the CHARACTERGUID_*ID*
AND
NOT DB_MonkWorksZombieDatabase(_) //checks to conferm if Zombie is NOT in DB.
THEN
DB_MonkWorksZombieDatabase(_Zombie); //Adds Zombie (CHARACTERGUID_*ID*) to DB
IF
CharacterDied(_Zombie) //check if Zombie is dead.
AND
DB_MonkWorksZombieDatabase(_Zombie) //aadd to db
THEN
NOT DB_MonkWorksZombieDatabase(_Zombie); //then don't add it to DB.
Last edited by Detect; 08/01/18 12:17 AM.