• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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