• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] How do I give lumber to all players?

Status
Not open for further replies.
Level 7
Joined
Feb 25, 2007
Messages
286
Im making a game where you have to buy some characters in the cornor and if you don't want to do that you can go to the sides and pick some instead of buying it. But I can't figure out which trigger it is to give all players lumber.
This is how far I got.....

  • Event:
  • Map Initialization
..lol....
 
You could just have a 1 time or ALL the time Lumber Income... This is mine... But you could change the time up a little...

Event--
Time-Every 600 seconds (10 Minutes) of game time
Conditions--
NONE
Actions--
Player-Add 1 to Player 1 (Red) Current Lumber
Player-Add 1 to Player 2 (Blue) Current Lumber
Player-Add 1 to Player 3 (Teal) Current Lumber
Player-Add 1 to Player 4 (Purple) Current Lumber
Player-Add 1 to Player 5 (Yellow) Current Lumber
Player-Add 1 to Player 6 (Orange) Current Lumber
Player-Add 1 to Player 7 (Green) Current Lumber
Player-Add 1 to Player 8 (Pink) Current Lumber


I haven't tried it yet, but my friend told me it'll work, so, you should take a crack at it ;).
 
You could just have a 1 time or ALL the time Lumber Income... This is mine... But you could change the time up a little....

  • Event--
  • Time-Every 600 seconds (10 Minutes) of game time
  • Conditions--
  • NONE
  • Actions--
  • Player-Add 1 to Player 1 (Red) Current Lumber
  • Player-Add 1 to Player 2 (Blue) Current Lumber
  • Player-Add 1 to Player 3 (Teal) Current Lumber
  • Player-Add 1 to Player 4 (Purple) Current Lumber
  • Player-Add 1 to Player 5 (Yellow) Current Lumber
  • Player-Add 1 to Player 6 (Orange) Current Lumber
  • Player-Add 1 to Player 7 (Green) Current Lumber
  • Player-Add 1 to Player 8 (Pink) Current Lumber
I haven't tried it yet, but my friend told me it'll work, so, you should take a crack at it ;).

And this is a hell of a stupid answear, sry to say, but the answear already given is 10 times more simpel and better. Your methode works yes.. but I would only use it to one player, not all. And more easily using a maching condition action.
 
The First answer given, acctually leaks, use a custom group variable, to link to all players and then after doing this make it destroy the group. *no leak*.

You realy got to have a very very slow pc before that trigger would leak. And it was meant for a help to one who didnt even know where to add lumber to a player, do you think he would understand custom Group variable?...
And picking all players (a group which always is there) and then do the action, cant realy see what should leak in it...
 
Status
Not open for further replies.
Back
Top