Warcraft III resources & community, 2003–2006 · archived

Victory Condition Help!

4 posts
#1

Victory Condition Help!

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
#2
This should be moved to the "maps" section.
#3
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
#4
DON'T USE THE REAL VARIABLE TYPE IN THIS CASE, YOU SHOULD USE >>INTEGER<<.