Aller au contenu

Photo

disable triggers questions


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
harjoblog

harjoblog
  • Members
  • 19 messages
 Is it possible to disable or destroy a trigger through scripting? I've tried DestroyObject "tag of object" and that doesn't seem to work.

Here is my scenario:

player(s) clear a dungeon, when they kill the last mob a localint "templecleanse" is set to 1, and a journal entry is updated. These two things I have put in the OnDeath of the Creature. WHat I want to happen next is 3 encounter triggers in this zone and 6 in another zone destroyed. I'm just not really sure if those triggers can be destroyed or disabled. I've set them to oneshot triggers, but I'd rather have them respawn until the very last mob is killed.

#2
Baragg

Baragg
  • Members
  • 271 messages
You could set a local on the module of zero and as long as it is zero the triggers are active, upon the death of the final critter the int is reset to one. Just have the onenter of the trigger check the int on the module.

#3
harjoblog

harjoblog
  • Members
  • 19 messages
I'll try that.

#4
eeriegeek

eeriegeek
  • Members
  • 47 messages
Setting the encounter's spawn max to zero also seems to work. (Infinity is -1)

SetEncounterSpawnsMax(0,oEncounter);

#5
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
If he is asking about an encounter? Then SetEncounterActive(FALSE) would work.

For Triggers Yes You can destroy them. But Baragg's way would be the way to go.