| 01-13-2004, 05:17 PM | #1 |
This is probaly a simple trigger question. But how do I make it so you lose when 2 buildings die...all I can do is make you lose when one building dies..and that's not what I want:bgrun: |
| 01-13-2004, 05:23 PM | #2 |
Any 2 buildings? Variable= integer & array - named "Lost" Trigger: Code:
Event
Unit dies
Condition
Dying unit is a structure equal to true
Action
Set Lost[player number(owner of (dying unit))] = Lost[player number(owner of (dying unit))] + 1
If
Conditions
Lost[player number(owner of (dying unit))] = 2
Then actions
[color=red]********Put your lose actions here (like message to player and such)********[/color]
Else
Do nothingThat trigger will make it so any player that loses 2 buildings loses the game. Now if your look if 2 SPECIFIC buildings die, then your looking for this: Code:
Events Building 1 <gen> dies [color=green]You will have to hit select unit and select the building in WE[/color] Building 2 <gen> dies[color=green]Dito[/color] Conditons Building 1 <gen> is dead equal to True[color=green]The building should be in the drop down list now, so you won't have the "Select Unit" again[/color] Building 2 <gen> is dead equal to True[color=green]Dito[/color] Actions [color=red]********Put your lose actions here (like message to player and such)********[/color] |
| 01-13-2004, 05:35 PM | #3 |
ok thanks :D |
| 01-13-2004, 05:45 PM | #4 |
Wouldn't it be easyer to make some kind of variable that, when one building dies, is set to one. (If/then/else Trigger) Like (Sorry, but I dont' have WC3 installed... shame on me) Event - Unit dies Condition - Dying unit is a structure equal to true Action If - *variable* equal to '1' /then Whatever your heart desires. /else set *variable* to '1' Or something like that. |
| 01-13-2004, 10:06 PM | #5 |
Um, my first trigger. Thats basically what it does Norwegian. First trigger break down: Unit dies, Is it a building? Yes set variable +1 check to see if variable = 2, if it does, player loses. |
| 01-14-2004, 10:35 AM | #6 |
Oh... sorry. Apparently I'm the one in a state of confusion here. |
| 01-14-2004, 12:51 PM | #7 |
Well a MOD can close this now or something, it's working. Thanks :D |
