If you are doing something like a quest where another NPC needs to be notified that another NPC has been killed by the PC, which would be better (or is there a different way altogether?)
1. Have a global variable that is set upon death that the living NPC checks?
2. Have an invisible token that is passed on death to the killing PC that the NPC checks for?
3. Profit?
Thansk!@
Global variable or passing the bucK?
-
Mindless Automaton
- UOX3 Apprentice
- Posts: 189
- Joined: Wed May 10, 2006 3:48 am
- Has thanked: 0
- Been thanked: 1 time
- Contact:
Global variable or passing the bucK?
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
- Xuri
- Site Admin
- Posts: 3704
- Joined: Mon Jun 02, 2003 9:11 am
- Location: Norway
- Has thanked: 48 times
- Been thanked: 8 times
- Contact:
Hm. Maybe you could set a temporary JS tag on the player that kills the NPC, and have the other NPC check against that tag to see if the player finished the quest? If so, complete quest, remove temporary tag.
Though you might need a system of keeping track of who's completed which quest, so might want to keep the tag. Hrm.
Another way is of course actually putting a quest-item of sorts in the dead NPC's lootbag, and have the PC hand it over to the other NPC as "proof of the deed".
Though you might need a system of keeping track of who's completed which quest, so might want to keep the tag. Hrm.
Another way is of course actually putting a quest-item of sorts in the dead NPC's lootbag, and have the PC hand it over to the other NPC as "proof of the deed".
-= Ho Eyo He Hum =-