WAR 3 Triggers

Icedragon

BattleForums Addict
Joined
Aug 2, 2002
Messages
836
Reaction score
0
Location
The Swiming Pools
are the constantly running or do i need to presserve them some how like say if the event is always do i need to preserve it some how or is it always on

And another thing i want to say if unit and unit are dead declare victory how would i do that? thanks

One more thing is there anyway to comapare scores of players in triggers
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
Each trigger needs an event, as in all programming, to execute. A constant running trigger might be Every 1 second. Anything smaller would lag.

EVENT: Unit [first unit] dies
CONDITION: Unit [second unit] is dead
ACTION: Player: Victory [player]

EVENT: Unit [second unit] dies
CONDITION: Unit [first unit] is dead
ACTION: Player: Victory [player]

2 triggers.

To compare scores, what do you want to do?
 

Icedragon

BattleForums Addict
Joined
Aug 2, 2002
Messages
836
Reaction score
0
Location
The Swiming Pools
But what im try to say i guess is what if the event happens twice will it still work or is it like Starcraft where you have to presserve tiggers to run again
 

Garthrs

Member!
Joined
Aug 3, 2003
Messages
130
Reaction score
0
Location
Usually buried at work
Website
Visit site
Anything that tracks a kill or money total, can't really be "turned off" for any real amount of time with out causing data errors in your variables. But if you "turn off" other less frequent triggers when they are not being used.... Your map may run smoother. And also see if a trigger really needs to be "Initially on." Remember do not write 8 every second triggers when you can write one using if then else statements.

Just my theory...

Score thing could be done by variables unless you want the score screen score. Then you'll have to dig a little deeper.
 

Garthrs

Member!
Joined
Aug 3, 2003
Messages
130
Reaction score
0
Location
Usually buried at work
Website
Visit site
If I understand the question...
You want a trigger to run several times?

Anytime the event happens (reoccuring game time, unit dies, unit enters region) the trigger will fire.
 

New threads

Top