Warcraft III resources & community, 2003–2006 · archived

Quick trigger Needed

7 posts
#1

Quick trigger Needed

I just need help with a Victory trigger. I need a trigger so that you achive victory by killing all enemy units.
#2
Untitled Trigger 001
    Events
        Time - Every 0.01 seconds of game time
    Conditions
        (Number of units in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red)))) Equal to 0
    Actions
        Game - Victory Player 1 (Red) (Show dialogs, Show scores)


condition is an integer.
#3
Thanks...i just forgot one little part of that trigger...












~Revolution.
#4

Re: Quick trigger Needed

Revolution.I just need help with a Victory trigger. I need a trigger so that you achive victory by killing all enemy units.


don't do it with an event of 0.01 periodic, thats just inefficient

just do
event-unit is killed
cond-if units in game owned by blah matching, matching unit is alive == 0
action-victory, turn off this trigger

and if you still use elfwarfare's trigger, at least turn it off at the end so it doesn't give you victory every 0.01 seconds constantly after you win
#5
What condition did you use i cant find it...
#6
ElfWarfare
Untitled Trigger 001
    Events
        Time - Every 0.01 seconds of game time
    Conditions
        (Number of units in (Units in (Playable map area) matching ((Owner of (Triggering unit)) Equal to Player 1 (Red)))) Equal to 0
    Actions
        Game - Victory Player 1 (Red) (Show dialogs, Show scores)


condition is an integer.


and yeahs, just add teh turn off trigger, well its all the same... its just a trigger after all... i think i need some rest from triggering <_<
#7
Yup thanks i found it :D