- Joined
- Mar 30, 2008
- Messages
- 666
How can i make a lose condition. 100kills=win
Well that do nothing is unnecessary btw.
- Win Conditions
- Event
- Unit - Unit dies
- Conditions
- ((Dying unit) is a Hero) equal to True
- (Owner of (Dying unit)) not equal to (Owner of (Killing Unit))
- (Killing unit) belongs to an enemy of (Owner of (Dying unit))
- (Owner of (Dying unit)) equal to User
- Actions
- Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
- *//you can insert various text triggers and effects for a hero's death//*
- If (All Conditions are true) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Hero_Kills[Number of (Owner of (Killing Unit))] = 100
- Then - Actions
- Game - Victory (Owner of Killing Unit) (Show dialogs, Show scores)
- Else - Actions
- Do nothing - this action is unnecesary
i cant put: (Owner of (Dying unit)) not equal to (Owner of (Killing Unit))
i cant put:Set Hero_Kills[Number of (Owner of (Killing Unit))] = (Hero_Kills[Number of (Owner of (Killing Unit))] + 1)
(Owner of (Dying unit)) equal to User
is 2 hard for me to make this trigger