• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade 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,380
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.
 
Level 17
Joined
Aug 19, 2007
Messages
1,380
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)))
 
Level 17
Joined
Aug 19, 2007
Messages
1,380
Nobody knows where the problem lies?

I could use the following trigger, but I prefer not to use it since than I can only make the map max 11 players:
  • Player - Divert 50% of the Gold income of Player 2 (Blue) to Player 12 (Brown)
Strange enough, this one does seem to work on the computer.
 
Status
Not open for further replies.
Top