Give 100 minerals + 1 gas to player 1 based on the amount of command center + oil refineries he has. So If he has 5 command centers, 5x100=500 minerals and 2 oil refieries 2x1 = 2 gas. I also need this to happen every 1 minute. (This is going to apply to all players in the game. If there's an easier trigger for every9one, please do so, otherwise I'm just going to copy the trigger for each player slot)
Give 100 minerals + 1 gas to player 1 based on the amount of command center + oil refineries he has. So If he has 5 command centers, 5x100=500 minerals and 2 oil refieries 2x1 = 2 gas. I also need this to happen every 1 minute. (This is going to apply to all players in the game. If there's an easier trigger for every9one, please do so, otherwise I'm just going to copy the trigger for each player slot)
This is one that should be pretty self-explanatory, if you just take the time to look in the trigger editor.
The pseudo-code looks something like this:
Event
Periodic - Every 60 second game time
Conditions
None
Variables
None
Actions
Pick every player in (All Players) and do actions:
{
Set (Minerals) to (Add) (Number of (Command Centers) matching conditions: owned by (Picked Player) x 100)
Set (Gas) to (Add) (Number of (Oil Refineries) matching conditions: owned by (Picked Player) x 1)
event every 60 real time seconds
pick every unit of command center owned by any player
actions ==> add x minerals to owner of picked unit
add x vespene to owner of picked unit
Do this again but replace command center with oil refinery =)
This is one that should be pretty self-explanatory, if you just take the time to look in the trigger editor.
The pseudo-code looks something like this:
Event
Periodic - Every 60 second game time
Conditions
None
Variables
None
Actions
Pick every player in (All Players) and do actions:
{
Set (Minerals) to (Add) (Number of (Command Centers) matching conditions: owned by (Picked Player) x 100)
Set (Gas) to (Add) (Number of (Oil Refineries) matching conditions: owned by (Picked Player) x 1)
}
A few problems wtih the trigger:
There is no "pick every player"...the trigger I found is similar but says "pick each player". Not sure if that matters. Also the actions you have within the { and } ... I cannot find. Cant you specify more clearly where they are?
Hey there,
I need a trigger for the following:
Give 100 minerals + 1 gas to player 1 based on the amount of command center + oil refineries he has. So If he has 5 command centers, 5x100=500 minerals and 2 oil refieries 2x1 = 2 gas. I also need this to happen every 1 minute. (This is going to apply to all players in the game. If there's an easier trigger for every9one, please do so, otherwise I'm just going to copy the trigger for each player slot)
This is one that should be pretty self-explanatory, if you just take the time to look in the trigger editor.
The pseudo-code looks something like this:
Event
Periodic - Every 60 second game time
Conditions
None
Variables
None
Actions
Pick every player in (All Players) and do actions:
{
Set (Minerals) to (Add) (Number of (Command Centers) matching conditions: owned by (Picked Player) x 100)
Set (Gas) to (Add) (Number of (Oil Refineries) matching conditions: owned by (Picked Player) x 1)
}
@urashimakt: Go
Ah neat. Thank you. I'm sure everything can be found within the Editor...but the forums here are to help people like me learn the different variables.
Thanks again!
Edit: What do you mena by Pick every player in all players do do actions? Which action do I initiate?
@Pokemeplx: Go
So I'm not sure I understand the "Actions" portion of that trigger. Can you give me a bit more detail? Thanks alot. I appreciate it.
You need to find the actions he/she pointed out.
Pick all player sis under playergroups.
event every 60 real time seconds
pick every unit of command center owned by any player
actions ==> add x minerals to owner of picked unit
add x vespene to owner of picked unit
Do this again but replace command center with oil refinery =)
@Pokemeplx: Go
New action > Player Groups > pick each player in player group
A few problems wtih the trigger:
There is no "pick every player"...the trigger I found is similar but says "pick each player". Not sure if that matters. Also the actions you have within the { and } ... I cannot find. Cant you specify more clearly where they are?
@Pokemeplx: Go
Anyone?
@Pokemeplx: Go
Bump!
@Pokemeplx:
Why don't u try my way? -.-' It's the easiest way and it is working on my map... lol
just copy and paste trigger
@Gaurus: Go
You're a god send. Thanks alot.