- Joined
- Mar 25, 2011
- Messages
- 50
I'm trying to complete a map I initially created years ago, so a lot of this stuff is coming back slow. Regardless, I need some help with the following situation if you'd be so kind 
Situation: Player 1 initially owns a base (Bandatia), and when it is attacked and reduced to 800 or below HP a dialog menu appears for the conquering player : either destroy or capture.
I have the dialog menu set up properly, and I can make it work between two set people, but I want the trigger to work for anyone who lowers the base below or equal to 800 hp.
Initial:

Situation: Player 1 initially owns a base (Bandatia), and when it is attacked and reduced to 800 or below HP a dialog menu appears for the conquering player : either destroy or capture.
I have the dialog menu set up properly, and I can make it work between two set people, but I want the trigger to work for anyone who lowers the base below or equal to 800 hp.
Initial:
-
events:
-
Map initialization
-
Actions:
-
Trigger - Add to Dialog <gen> the event (Unit - Bandatia 0007 <gen>'s life becomes Less than or equal to 800.00)
-
Dialog - Create a dialog button for Dialog_Window labelled Capture the Town
-
Set Dialbuttone = (Last created dialog Button)
-
Dialog - Create a dialog button for Dialog_Window labelled Pillage the Town
-
Set Diabuttontwo = (Last created dialog Button)
-
Condtions:
-
((Triggering unit) is A town-hall-type unit) Equal to True
-
Actions:
-
Unit - Make (Triggering unit) Invulnerable
-
Dialog - Change the title of Dialog_Window to Choose your Action
-
Dialog - Show Dialog_Window for (Owner of (Damage source))
-
Events:
-
Dialog - A dialog button is clicked for Dialog_Window
-
Actions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Clicked dialog button) Equal to Dialbuttone
-
-
Then - Actions
-
Unit - Change ownership of Bandatia 0007 <gen> to IntegerP and Change color
-
Unit - Make Bandatia 0007 <gen> Vulnerable
-
Unit - Set life of Bandatia 0007 <gen> to 100.00%
-
-
Else - Actions
-
Player - Add (Random integer number between 275 and 425) to (Triggering player) Current gold
-
-