- Joined
- Apr 1, 2017
- Messages
- 47
“then” part of trigger “REFIL DEALOG CHOICE” doesn’t work
-
Stunning beer empty
-

Events
-


Unit - A unit Loses an item
-
-

Conditions
-


(Item-type of (Item being manipulated)) Equal to Barrel of Stunning Beer
-
-

Actions
-


Item - Create Empty Barrel of Stunning Beer at (Position of (Hero manipulating item))
-


Set EMPTYBARREL = (Last created item)
-


Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
-
-
REFIL DIALOG
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Dialog - Create a dialog button for REFILDIALOG labelled Sure (Pay 500 gold)
-


Set REFILDIALOGYEW = (Last created dialog Button)
-


Wait 0.01 seconds
-


Dialog - Create a dialog button for REFILDIALOG labelled Not now
-


Set REFILDIALOGYNOPE = (Last created dialog Button)
-


Wait 0.01 seconds
-


Dialog - Change the title of REFILDIALOG to Pay?
-
-
-
REFIL
-

Events
-


Unit - A unit enters Region 123 <gen>
-
-

Conditions
-


((Triggering unit) has an item of type Empty Barrel of Stunning Beer) Equal to True
-
-

Actions
-


Trigger - Turn off (This trigger)
-


Cinematic - Flash a speech indicator for Tavern 0070 <gen> of color (100.00%, 100.00%, 100.00%) with 0.00% transparency
-


Cinematic - Send transmission to (All players) from Villager (Female) 0231 <gen> named Bartender: Play No sound and display Sure, I can refill .... Modify duration: Set to 3.00 seconds and Wait
-


Dialog - Show REFILDIALOG for (Owner of (Triggering unit))
-
-
-
REFIL DEALOG CHOICE
-

Events
-


Dialog - A dialog button is clicked for REFILDIALOG
-
-

Conditions
-


(Clicked dialog button) Equal to REFILDIALOGYEW
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Owner of (Triggering unit)) Current gold) Greater than or equal to 500
-
-



Then - Actions
-




Item - Remove EMPTYBARREL
-




Player - Add -500 to (Owner of (Triggering unit)) Current gold
-




Cinematic - Flash a speech indicator for Tavern 0070 <gen> of color (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




Cinematic - Send transmission to (All players) from Villager (Female) 0231 <gen> named Bartender: Play No sound and display Thank you! Come aga.... Modify duration: Set to 2.00 seconds and Don't wait
-
-



Else - Actions
-




Cinematic - Flash a speech indicator for Tavern 0070 <gen> of color (100.00%, 100.00%, 100.00%) with 0.00% transparency
-




Cinematic - Send transmission to (All players) from Villager (Female) 0231 <gen> named Bartender: Play No sound and display Not enough cash, st.... Modify duration: Set to 2.00 seconds and Don't wait
-




Trigger - Turn off REFIL <gen>
-




Wait 20.00 seconds
-




Trigger - Turn on REFIL <gen>
-
-
-
-
-
REFIL DIALOG NOPE
-

Events
-


Dialog - A dialog button is clicked for REFILDIALOG
-
-

Conditions
-


(Clicked dialog button) Equal to REFILDIALOGYNOPE
-
-

Actions
-


Cinematic - Flash a speech indicator for Tavern 0070 <gen> of color (100.00%, 100.00%, 100.00%) with 0.00% transparency
-


Cinematic - Send transmission to (All players) from Villager (Female) 0231 <gen> named Bartender: Play No sound and display Come back any time!. Modify duration: Set to 2.00 seconds and Wait
-



Wait 30.00 seconds
-



Trigger - Turn on REFIL <gen>
-
-
-



