Most experienced mapmakers know how to attach triggers to objects (or teams) on their map. A problem develops when one wants the same object to be considered for the events of 2 or more triggers. How does one attach a trigger to an object that already has a trigger attached to it? This short tutorial will tell you how to do it.
The thing you must understand is that you do not actually attach a trigger to an object. What you are really doing is attaching that trigger's tag. So what you need is a common tag for all triggers involved. Let's consider an example where you want to attach 2 triggers to the same building.
Make both triggers, and call them TRIG1 and TRIG2. Now edit TRIG1: in the "attached trigger" field (you thought you would never use this, right?), select TRIG2. Now TRIG2 is attached to TRIG1, so TRIG2 doesn't need a tag anymore -- because it can use TRIG1's tag instead! At this point, open into the Tag Editor and find TRIG2's tag, and delete it. It is no longer needed and its presence would just confuse things. You want to force TRIG2 to use TRIG1's tag.
Double-check TRIG1 in the trigger editor and make sure it is set to Type2 (repeating). You must do this or your multiple trigger arrangement will not work properly. This is because tags can be repeating or not -- not triggers. If the tag was not flagged as a repeating tag, then when the first trigger fires the tag gets "used up", and the second trigger would never fire. After you set TRIG1 to be repeating, you can check TRIG2 and you will see it has automagically become a Type2 trigger as well.
Now double-click on your building, and attach TRIG1's tag to it. Both triggers are now attached to the same building!
RA2/YR: Attaching Multiple Triggers to the Same Object
No replies to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users