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