• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Condition part doesn’t work?

Status
Not open for further replies.
Level 3
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>
 
Status
Not open for further replies.
Top