Posted: Wed Mar 11, 2009 5:23 am Post subject:
triggers w/ IE
Subject description: 2 triggers attached to 1 buildings
A vehicle starts off trying to make it to a waypoint. If the vehicle is destroyed then a timer starts (long timer) If the train arrives then a shorter time starts. Once the timer starts, there is a second objective. The second objective is to capture a certain building. Once this is done the both timer triggers are destroyed and a longer timer is started. If the building is destroyed then both triggers are destroyed and a shorter timer is started. When the building is captured a team is created to destroy the building. The player has to defend the building.
3 countries A, B, C
A & C are allies, but C doesn't have any part in the mission except for the vehicle
vehicle move (T1) Works
house C
Event: 13 elapsed time
Action: 4 create team
vehicle destroyed trigger (T2): Works
house C
Event: 7 destroyed
Action: 27 set timer, 23 timer start, 21 play speech
vehicle arrives vehicle reaches trigger: (T3) Works
house C
Event: 1 entered by : vehicle owning country
Action: 27 set timer, 21 play speech, 23 timer start
(This is the part that fails)
Building Captured (owner civ) (B1)
Event: 1 entered by : AI player
Action: 12 destroy trigger V1, 12 destroy trigger V2, 27 Timer set, 23 Timer start, 4 Create team
Building Destroyed (by computer) (B1)
Event: 1 entered by : player country
Action: 12 destroy trigger V1, 12 destroy trigger V2, 27 Timer set, 23 Timer start, 4 Create team
I have tried different variations and I get an IE Error.....006EA6AE. Nothing seems to work, including using this tutorial by CannisRabidus.
RA2/YR: Attaching Multiple Triggers to the Same Object
by CannisRabidus. Published: 1/1/03. Last update: 9/6/03.
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!
Posted: Thu Mar 12, 2009 1:11 am Post subject:
post
I posted the except to show that I tried to get my trigger work and when I did I received an error message. The IE is not in the list on the modenc QUICK_EDIT
The problem is that now someone with a similar problem might look here and will not get an answer or may perhaps believe you didn't get an answer and provide a redundant one. QUICK_EDIT
Posted: Mon Mar 16, 2009 12:09 pm Post subject:
post
well, i tried searching posts for an answer that might close but I found nothing. I figured my trigger was unique. So Blade these forums (PPM & Renegade) are sister forums and you are telling me I should post my question in 1 forum or the other? If that is the case which one would be the best to get an answer or is it potluck? QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum