• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

dialog and upkeep problem

Status
Not open for further replies.
Level 17
Joined
Aug 19, 2007
Messages
1,377
Hi all,

I have set a simple dialog at the beginning of the game that handles resource income handicaps or boosts for the AI:

  • Easy button
    • Events
      • Dialog - A dialog button is clicked for DifficultyDialog
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • Trigger - Run Starting Units <gen> (checking conditions)
      • Game - Display to (All players) the text: |cff32cd32Difficult...
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) controller) Equal to Computer
        • Then - Actions
          • Player - Set Player 1 (Red) Lumber upkeep rate to 50
          • Player - Set Player 1 (Red) Gold upkeep rate to 50
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 2 (Blue) controller) Equal to Computer
        • Then - Actions
          • Player - Set Player 2 (Blue) Lumber upkeep rate to 50
          • Player - Set Player 2 (Blue) Gold upkeep rate to 50
        • Else - Actions
The problem is though that the action set property lumber/gold upkeep rate does not seem to work. It does work when I set it for myself but apparently not for the computer player 2 (also not when set outside of the if/then/else). Anyone know how to solve this?

Thanks for taking the time.
 
But when I place it outside of the if/then/else the upkeep rate has no effect too on the computer.

For example, the following trigger only effects me but not player 2 which is a computer (with playing manually & playing testing):

  • Easy button
    • Events
      • Dialog - A dialog button is clicked for DifficultyDialog
    • Conditions
      • (Clicked dialog button) Equal to DialogButton[1]
    • Actions
      • Trigger - Run Starting Units <gen> (checking conditions)
      • Game - Display to (All players) the text: |cff32cd32Difficult...
      • Player - Set Player 1 (Red) Lumber upkeep rate to 50
      • Player - Set Player 1 (Red) Gold upkeep rate to 50
      • Player - Set Player 2 (Blue) Lumber upkeep rate to 50
      • Player - Set Player 2 (Blue) Gold upkeep rate to 50
I checked his resources as an ally ingame and a replay. Here is more 'proof' that apperently it does not work on computers, the following trigger gives '0' as a message:

  • Untitled Trigger 001
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (String((Player 2 (Blue) Lumber upkeep rate)))
While this trigger gives '50' as a message:

  • Untitled Trigger 001
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (String((Player 1 (Red) Lumber upkeep rate)))
 
Status
Not open for further replies.
Back
Top