• 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.

I need a Victory trigger! (after destroying enemy base)

Status
Not open for further replies.
Level 2
Joined
Apr 13, 2008
Messages
13
Can someone help me. I want a game so when you destroy the enemy base you win... I already got one but the tower is upgradable so the trigger only works on the Base tower and not the upgrades how do i fix that so it will work for all upgrades?:confused:
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,259
It should as when you upgrade a building via the standard upgrade (not replace via triggers) it remains the same unit but with different stats (as far as triggers know).

If it does not you can always use a player wise death event and check if the unit is the building for the victory actions. Appon upgrade you can then simply set the variable to the new value of the unit. However I strongly think that my first idea will occur and so the second should only be tried if the first does not work.
 
Level 2
Joined
Apr 13, 2008
Messages
13
  • Victory
    • Events
      • Unit - Cavemen age 0001 <gen> Dies
    • Conditions
      • (Unit-type of Cavemen age 0001 <gen>) Equal to 1500 A.D
      • (Unit-type of Cavemen age 0001 <gen>) Equal to 1800A.D
      • (Unit-type of Cavemen age 0001 <gen>) Equal to Present Day
      • (Unit-type of Cavemen age 0001 <gen>) Equal to Future space station
      • (Owner of Cavemen age 0001 <gen>) Equal to Player 2 (Blue)
    • Actions
      • Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
        • Loop - Actions
          • Game - Victory Player 1 (Red) (Show dialogs, Show scores)


i have this and its not working :(
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
you have to put "or" and "and" between your conditions, cause the way you have it now, it would have to be each of the buildings at one time, scroll down in condition menu

(condition1 or (condition2 or (condition3 or condition4))) and owner of unit is player2
 
Status
Not open for further replies.
Top