I have made a trigger that creates a mini game at one part of the map. Once someone types -mini game it brings up a bunch of text and gives you the option to type -yes.
If you type (-yes) you are given a unit, the unit is in an area by a bunch of shops, some vendors contain suits for them and item buffs. The unit is to use its own strategy to kill the others who join this game (people who typed -yes). The trigger I am trying to create is one which awards the last survivor 10,000 gold, and then remove all the items in the mini game area.
The trigger only seems to remove all units after only one unit has been killed, and it doesn't show the Text or give the gold to the winning player.
This is what I have down so far.
Game Over
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Member
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Members) Equal to 1
Then - Actions
Player - Add 10000 to (Owner of (Picked unit)) Current gold
Else - Actions
Game - Display to (All players) the text: Game Over, the fina...
Unit Group - Pick every unit in (Units in Region 197 <gen>) and do (Unit - Remove (Picked unit) from the game)
Trigger - Turn on Mini Game Start <gen>
I am still very inexperienced with triggers, help would be appreciated <3
If you type (-yes) you are given a unit, the unit is in an area by a bunch of shops, some vendors contain suits for them and item buffs. The unit is to use its own strategy to kill the others who join this game (people who typed -yes). The trigger I am trying to create is one which awards the last survivor 10,000 gold, and then remove all the items in the mini game area.
The trigger only seems to remove all units after only one unit has been killed, and it doesn't show the Text or give the gold to the winning player.
This is what I have down so far.
Game Over
Events
Unit - A unit Dies
Conditions
(Unit-type of (Triggering unit)) Equal to Member
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Members) Equal to 1
Then - Actions
Player - Add 10000 to (Owner of (Picked unit)) Current gold
Else - Actions
Game - Display to (All players) the text: Game Over, the fina...
Unit Group - Pick every unit in (Units in Region 197 <gen>) and do (Unit - Remove (Picked unit) from the game)
Trigger - Turn on Mini Game Start <gen>
I am still very inexperienced with triggers, help would be appreciated <3