• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Add resources at start-up

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have this trigger:

  • Start Resources
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Add 100 to Player 1 (Red) Current gold
      • Player - Add 100 to Player 2 (Blue) Current Gold
For some reason, when I test this map in multiplayer, only player 1 gets the gold. Player 2 never gets the extra 100 gold.

I also have this:
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Set starting resources (for all players)
These resouces are added to both players, but the extra 100 gold only goes to player 1.

What am I doing wrong?
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked player) controller) Equal to User
              • ((Picked player) slot status) Equal to Is playing
            • Then - Actions
              • Player - Add 1000 to (Picked player) Current gold
            • Else - Actions
Adds the specified amount of gold to all players which are in-game and are controlled by user.
 
Last edited:
You are not doing anything wrong, you dont need to modify your triggers. The ansewer is pretty simple:

  • Melee Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Melee Game - Set starting resources (for all players)


Delete it!

After you set the resources, this stupid trigger makes everyone have the default resources again.
 
Status
Not open for further replies.
Top