• 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.

[Trigger] Very seriuly help dialog O_O

Status
Not open for further replies.
Sorry for this post but is very worrying, I make a dialog button that if a player push it and he have more or equal to 100 gold upgrade units and remove gold for upgrade, less to 100 don't upgrade, But don't run, Avator say to me to put in events player protiers but I can't put player variavle for owner of player and owner of triggering unit....

I give +rep who repair my button and run :grin::wink::thumbs_up:

This is my dialog button
  • actions pulsed pirate
    • Events
      • Dialogue - A dialog button is clicked for Mydialog
    • Conditions
      • (Clicked dialog button) Same as Dialogbutton [1]
    • Stocks
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player number of (Owner of (Triggering unit))) Greater than or equal to 100
        • Then - Actions
          • Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
          • Player - Add (Sign (-100)) to (Owner of (Triggering unit)) Gold used in maintenance
          • Match - Display to (All players) for 10.00 seconds the text: Upgrade to cane lv ...
        • Otherwise - Stocks
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Player number of (Owner of (Triggering unit))) Less than 100
            • Then - Actions
              • Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
            • Otherwise - Stocks
              • Do nothing
:fp:Remember to all that stocks is Action(google translate I use) ^^
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
(Player number of (Owner of (Triggering unit))) Greater than or equal to 100

will never work..
Firstly, you don't have a unit which triggers, so use Player Nubmer of (Triggering Player)
Secondly, Player Numbers reach from 1 to 16, so greater than 100 can't work
And thridly, delete this 'Do nothing' since it only uses up ram
 
set it but no run

  • actions pulsed pirate
    • Events
      • Dialogue - A dialog button is clicked for Mydialog
    • Conditions
      • (Clicked dialog button) Same as Dialogbutton [1]
    • Stocks
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player number of (Triggering player)) Greater than or equal to 100
        • Then - Actions
          • Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
          • Player - Add (Sign (-100)) to (Owner of (Triggering unit)) Gold used in maintenance
          • Match - Display to (All players) for 10.00 seconds the text: Upgrade to cane lv ...
        • Otherwise - Stocks
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Player number of (Triggering player)) Less than 100
            • Then - Actions
              • Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
            • Otherwise - Stocks
 
and this is just?
  • Events
    • Dialogue - A dialog button is clicked for Mydialog
    • Conditions
      • (Clicked dialog button) Same as Dialogbutton [1]
    • Stocks
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Oro current player) Greater than or equal to 100
        • Then - Actions
          • Player - Add -100 to player Oro used in maintenance
          • Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
          • Match - Display to (All players) the text: 55,595
        • Otherwise - Stocks
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Oro current player) Less than 100
            • Then - Actions
              • Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
            • Otherwise - Stocks
lol I have modifed in to this and upgrade run but don't remove gold
  • actions pulsed pirate
    • Events
      • Dialogue - A dialog button is clicked for Mydialog
    • Conditions
      • (Clicked dialog button) Same as Dialogbutton [1]
    • Stocks
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) Oro current) Greater than or equal to 100
        • Then - Actions
          • Player - Add -100 to current player Oro
          • Player - Set the current level of research Mike Cannon to 1 for Player 8 (Rosa)
          • Match - Display to (All players) the text: 55,595
        • Otherwise - Stocks
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Triggering player) Oro current) Less than 100
            • Then - Actions
              • Match - Display to (All players) for 10.00 seconds the text: Hehe, need more goals ...
            • Otherwise - Stocks
 
Status
Not open for further replies.
Top