• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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