I do not know how to make my own triggers pretty much, so can anyone explain to me how to make a trigger so that when Unit X enters Region Y, your side loses 1 life, and when there is 0 lives, the game ends? Thanks
Event: Any unit enters region PLAYERREGION.
Conditions: Owner of triggering unit is EVILPLAYER.
Actions:
remove triggering unit
Modify variable LIVEsForThatPlayerThatBelongsToThatRegion: - 1
if
- LIVEsForThatPlayerThatBelongsToThatRegion <= 0
then:
- end scenario in defeat for PLAYERthatBelongsToThatRegion, do show scores screen, do show dialog
else:
- nothing
I do not know how to make my own triggers pretty much, so can anyone explain to me how to make a trigger so that when Unit X enters Region Y, your side loses 1 life, and when there is 0 lives, the game ends? Thanks
Right click -> new trigger...
Event: Any unit enters region PLAYERREGION.
Conditions: Owner of triggering unit is EVILPLAYER.
Actions:
remove triggering unit
Modify variable LIVEsForThatPlayerThatBelongsToThatRegion: - 1
if
- LIVEsForThatPlayerThatBelongsToThatRegion <= 0
then:
- end scenario in defeat for PLAYERthatBelongsToThatRegion, do show scores screen, do show dialog
else:
- nothing
Basically you do exactly what you said.
@Ahli634: Go
Thanks, would have never figured it out on my own :P