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

Set start resources

Status
Not open for further replies.
  • 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) --------
 
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:
 
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.
Back
Top