• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Dialog triggers problem

Status
Not open for further replies.
Level 5
Joined
Mar 19, 2010
Messages
106
Im making a new map and.. I found a problem that I cannot fix... Im trying to make a trade system that cost 100 gold and gives you 50 lumber... and I wanted to do it with a trigger here the trigger:....
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Owner of (Triggering unit)) Current gold) Greater than* 100
    • Then - Actions
      • Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - 100)
      • Player - Add 50 to (Owner of (Triggering unit)) Current wood
    • Else - Actions
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 8.00 seconds the text: |c00FFFC01You need 100 gold|r
 
Status
Not open for further replies.
Top