Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sun Dec 14, 2025 3:23 pm
All times are UTC + 0
triggers w/ IE
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
drizzt_dourden
GDI Hacker


Joined: 21 Feb 2008
Location: Plains PA

PostPosted: Wed Mar 11, 2009 5:23 am    Post subject:  triggers w/ IE
Subject description: 2 triggers attached to 1 buildings
Reply with quote  Mark this post and the followings unread

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!



except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  24.65 KB
 Downloaded:  101 Time(s)


Back to top
View user's profile Send private message Send e-mail
Dark Templar X
Commander


Joined: 26 Feb 2009

PostPosted: Wed Mar 11, 2009 6:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Don't cross post your excepts. >_>

Back to top
View user's profile Send private message
drizzt_dourden
GDI Hacker


Joined: 21 Feb 2008
Location: Plains PA

PostPosted: Thu Mar 12, 2009 1:11 am    Post subject: post Reply with quote  Mark this post and the followings unread

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

Back to top
View user's profile Send private message Send e-mail
Dark Templar X
Commander


Joined: 26 Feb 2009

PostPosted: Thu Mar 12, 2009 2:51 am    Post subject: Reply with quote  Mark this post and the followings unread

DCoder already posted your answer.

Back to top
View user's profile Send private message
drizzt_dourden
GDI Hacker


Joined: 21 Feb 2008
Location: Plains PA

PostPosted: Sat Mar 14, 2009 2:05 am    Post subject: post Reply with quote  Mark this post and the followings unread

yeah, on another forum, not here. I post it where ever I think I will get an answer.

Back to top
View user's profile Send private message Send e-mail
Dark Templar X
Commander


Joined: 26 Feb 2009

PostPosted: Sat Mar 14, 2009 3:30 am    Post subject: Reply with quote  Mark this post and the followings unread

How about you learn a little ztyping patience?

Back to top
View user's profile Send private message
drizzt_dourden
GDI Hacker


Joined: 21 Feb 2008
Location: Plains PA

PostPosted: Sun Mar 15, 2009 9:42 am    Post subject: ztyping Reply with quote  Mark this post and the followings unread

ztyping??? WTF?? How about I try to ask the question where ever I can and hope to get an answer....

Back to top
View user's profile Send private message Send e-mail
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Sun Mar 15, 2009 5:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message
drizzt_dourden
GDI Hacker


Joined: 21 Feb 2008
Location: Plains PA

PostPosted: Mon Mar 16, 2009 12:09 pm    Post subject: post Reply with quote  Mark this post and the followings unread

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?

Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1906s ][ Queries: 13 (0.0100s) ][ Debug on ]