• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How does one rebuild a trigger exactly. . .

Status
Not open for further replies.
I don't know how and would like to know how it works if anyone could offer their help. I'd appreciate any. The thing I am trying to do is triggered regions with region events however you need to add a new event every time the region gets moved otherwise it won't register at the new spot where it was moved too. So that means in order to avoid the event limit on a trigger so the map doesn't crash I will need to know how to destroy the trigger or remove the events and remake/redo it.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
It is quite cumbersome in GUI.

There is DestroyTrigger, CreateTriggerTriggerAddCondition andTriggerAddAction. Most vJassers would not use actions, only condition function. Then you can add events to the trigger, there is a GUI action for that.

So first you destroy the trigger. Then you would create a new one. You add the condition function to the trigger. Then you register the new event with TriggerRegisterEnterRegion.

Notice that rect and region are quite different. A rect is an area defined by four sides and corners, each corner being 90°. A rectangle. Region is a collection of rects. For example, you can create three rects and together they form a region.

A rect in jass is the region in gui.
 
Status
Not open for further replies.
Top