• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Quick trigger Needed

Status
Not open for further replies.
Level 7
Joined
Jul 30, 2004
Messages
451
Revolution. said:
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
 
ElfWarfare said:
Code:
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 <_<
 
Status
Not open for further replies.
Top