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

Set start resources

Status
Not open for further replies.
Level 8
Joined
Nov 9, 2008
Messages
502
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Set Player 1 (Red) Current gold to 750
  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Set (Player((Integer A))) Current gold to 750
          • -------- when you pick which player go to function and choose "convert player index to play" --------
          • -------- this will give the resources to all players (1-12) --------
 
Level 10
Joined
Nov 5, 2008
Messages
536
Now my triggers look like this:

  • Start Resources
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player - Set Player 1 (Red) Current gold to 250
      • Player - Set Player 1 (Red) Current lumber to 500
  • Start Resources All
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Set (Player(1)) Current lumber to 500
          • Player - Set (Player(1)) Current gold to 250
Perhaps a silly question, but in the last fields there is a number which can be set. Shall I enter 12 there since there is 12 players or shall I put the number of maximum players on my map? (In this case: 2) :con:
 
Level 8
Joined
Nov 9, 2008
Messages
502
Now my triggers look like this:

  • Start Resources All
    • Events
      • Map initialization
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Player - Set (Player(1)) Current lumber to 500
          • Player - Set (Player(1)) Current gold to 250
Perhaps a silly question, but in the last fields there is a number which can be set. Shall I enter 12 there since there is 12 players or shall I put the number of maximum players on my map? (In this case: 2) :con:

Yes the max of Integer A should be the total number of players (assuming player 2 is infact in player 2 slot) but it will not work for both players unless you change
  • Player - Set (Player(1)) Current gold to 250
to
  • Player - Set (Player((Integer A))) Current gold to 250
For just 2 players it's probably easier just to use the first trigger and add the actions for each player.
 
Status
Not open for further replies.
Top