How should I reference players, the GUI wants an integer. If you mean this:
Add 10 minerals for player 5
Add 10 minerals for player 6
Add 10 minerals for player 7
I can't think of a better way. They are in a player group called bottom force. But I am unsure if I can do add 10 minerals for each player in x player group. I'm a noob, this is my first map :)
Hello everyone, I am wondering if and how triggers work (perhaps a queue?) when two events are something like "any unit dies" Each different trigger goes to a different player group.
Example: -Trigger 1-
Event: Any unit dies Conditions: Owner of Triggering Unit == 4 ;This is the AI's player number
Actions: If ;works best if I don't put an initial condition for this if
Or
Unit type of triggering unit == Zealot
Unit type of triggering unit == Ghost
Unit type of triggering unit == Firebat
Unit type of triggering unit == Kerrigan - Void
Unit type of triggering unit == Hydralisk
Then: Add 10 minerals for player 5
Add 10 minerals for player 6
Add 10 minerals for player 7
Trigger 2 is similar but instead of the initial condition of player 4, it is 8. In addition 10 minerals are added to player 1, 2, and 3.
My question is, if a unit dies, will the code make a queue such that it checks the first trigger with event "any unit dies" and then the second? Or will it just break completely? I'm curious because both triggers use the same event but different conditions (I would assume this is fine). The other issue is that these two triggers will happen like every 2-5 seconds and I don't want any issues to occur. Edit: The reason I am worried about the time is if it does make a queue, but the frequency is high, there might be some delay to the mineral addition.
I was also skeptical of combining these two triggers into one trigger.
P.S. I would test but I have not figure out how to be on 2 teams at different times :P
That seems a lot simpler xD
How should I reference players, the GUI wants an integer.
If you mean this:
Add 10 minerals for player 5
Add 10 minerals for player 6
Add 10 minerals for player 7
I can't think of a better way. They are in a player group called bottom force. But I am unsure if I can do add 10 minerals for each player in x player group. I'm a noob, this is my first map :)
Hello everyone, I am wondering if and how triggers work (perhaps a queue?) when two events are something like "any unit dies"
Each different trigger goes to a different player group.
Example:
-Trigger 1-
Event: Any unit dies
Conditions: Owner of Triggering Unit == 4 ;This is the AI's player number
Actions: If ;works best if I don't put an initial condition for this if
Or
Unit type of triggering unit == Zealot
Unit type of triggering unit == Ghost
Unit type of triggering unit == Firebat
Unit type of triggering unit == Kerrigan - Void
Unit type of triggering unit == Hydralisk
Then:
Add 10 minerals for player 5
Add 10 minerals for player 6
Add 10 minerals for player 7
Trigger 2 is similar but instead of the initial condition of player 4, it is 8. In addition 10 minerals are added to player 1, 2, and 3.
My question is, if a unit dies, will the code make a queue such that it checks the first trigger with event "any unit dies" and then the second?
Or will it just break completely? I'm curious because both triggers use the same event but different conditions (I would assume this is fine). The other issue is that these two triggers will happen like every 2-5 seconds and I don't want any issues to occur.
Edit: The reason I am worried about the time is if it does make a queue, but the frequency is high, there might be some delay to the mineral addition.
I was also skeptical of combining these two triggers into one trigger.
P.S. I would test but I have not figure out how to be on 2 teams at different times :P