So the way I'm thinking of doing this like this, please tell me if I'm crazy. I also need help incrementing the global through proximities.
At this portion of the quest the player has a global value of 5 assigned to him, 6 is temporary (npc spawned), 7 is quest complete.
1) Player zones into Nektulos
2) Proximity checks for global == 5
3) Proximity spawns NPC at xyz
4) Proximity sets global value to 6 (prevents recurrence and later plays into another global)
5) Proximity depops (prevents multiple people from firing script)
6) Raid kills NPC
7) Player with global 6 has his global set to 7
9) Players with global 5 are ignored
9) Death of NPC respawns Proximity for the next person
Is this a good way to handle this? If so, can I alter globals through a event_enter check? How do I increment the global from 6 to 7 when the NPC dies? How do decrease the global from 6 to 5 if the NPC is never killed?
I don't anticipate the "npc never killed" thing will happen, but I ask incase I want to use this quest template for a much stronger npc later.
If there is a better way to handle this I'm all ears. I'm a quest-writing noob.
|