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

Victory Condition Help!

Status
Not open for further replies.
Level 7
Joined
Aug 29, 2005
Messages
313
In the 1 player campaign i played maps with victory conditions "Destroy The enemy base" I tried 2 make it like this:
Events:
Castle <gen> dies
Blacksmith <gen> dies
Barracks <gen> dies

Actions:
Victory 4 player 1 Red


Ingame: When i 4 example destroy a Blacksmith I get victory! So i have 2 destroy 1 of the 3 buildings!!! Which i dont want! If u know the right trigger 4 destroying all buildings, ill be pleased!!! :D
 
Level 6
Joined
Mar 29, 2004
Messages
222
This may not be the best way, but its how i would do it, REMEMBER TO SET BUILDINGS LEFT TO 3.00 AT MAP INIT

Trigger 001
Events:
<blacksmith> dies
<castle> dies
<barracks> dies

Conditions:
NONE

Actions:
Set BuildingsLeft(Var real) = BuildingsLeft(var) -1.00

Trigger 002
Events:
Value of BuildingsLeft(Real) is equal to 0.00

Conditions:
NONE

Actions:
Victory Player One
 
Status
Not open for further replies.
Top