If there is only 1 player on a force, does it make any difference at all if a trigger is assigned to the player or the force?
Mainly in regards to efficiency of trigger processes, or any other effects?
None.
Most likely not, but if you change something it will affect your Force triggers. Player is more specific.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
With ownership there's no difference regarding efficiency as sc splits up the triggers into individual players anyway.
When you're in doubt about actions and conditions, it's safer to use the specific player.
Results are unpredictable if you are trying to give 1 unit to a whole force. However, this
might be no problem if the force consists only of one player. You can easily test that.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
You cannot GIVE units to a force, I think.
@topic:
It doesn't care in your case.
I can only think of 1 small difference which should be unimportant for you because I'm not quite sure about that, if there is only 1 Player in the Force.
I thought that force triggers fire before player triggers? isn't there an order of operation for triggers?
None.
You cannot GIVE units to a force, I think.
Ever played one of those sunken defense maps where the leaving player's units are given to the rest of the players? Yes, you can give units to force.
None.
I thought that force triggers fire before player triggers? isn't there an order of operation for triggers?
No, there's just an order of triggers, but when it hits a trigger running for a force, or multiple players, it splits it up into multiple triggers.
Giving units to a force first tries to give them to the first player in the force(Player 1 always comes first), and continues to give them, going down the line of players.
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
You cannot GIVE units to a force, I think.
Ever played one of those sunken defense maps where the leaving player's units are given to the rest of the players? Yes, you can give units to force.
I thought that force triggers fire before player triggers? isn't there an order of operation for triggers?
No, there's just an order of triggers, but when it hits a trigger running for a force, or multiple players, it splits it up into multiple triggers.
Giving units to a force first tries to give them to the first player in the force(Player 1 always comes first), and continues to give them, going down the line of players.
GIVING units to a FORCE does NOT work. There will be given exactly 0 units.
Try the small attached testmap which should clarify this.
You can create units for a force, but you cannot give units to a force.
Attachments:
Uh yes you can. Check sunken def maps. Those will say "Give Units to Force at 'location'."
uhh...there are like hundreds of sunken defense maps, be more specific.
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
Quote from name:Dem0nS1ayer
Uh yes you can. Check sunken def maps. Those will say "Give Units to Force at 'location'."
And why that won't work for that small map I made?
THIS trigger does nothing, but you expect that it has an effect:DESCRIPTION: Give Units to a Force directly
PLAYERS: Player # (any player, 1 active player is enough, does not has to be in the Force)
CONDITIONS:
-Neutral commands at least 1 Any Unit
ACTIONS:
-Give All Any Unit owned by Neutral in Anywhere to Force #
-Preserve trigger
THIS trigger does the effect you see:DESCRIPTION: Give Units to a Player in a Force (not directly give to a Force)
PLAYERS: Force #
CONDITIONS:
-Neutral commands at least 1 Any Unit
ACTIONS:
-Give 1 Any Unit owned by Neutral in Anywhere to Current Player
-Preserve trigger
(result of this trigger: all units from Neutral are given to the playing members of that Force. First unit will belong to P1, second one to P2, ....)
But this is not equal to "give units to a Force" because you cannot give units to a Force. Btw you cannot select a Force or All Players in staredit, too).
I tried to run a give p12 to Force just recently on the map I'm working on now and it doesn't work, the units remain in the care of p12.
When changing it to read give p12 to p1 etc. it worked perfectly.
Maybe in the D maps where p12 is given to remaining players it uses a series of give p12 to p1, p2, p3, etc.
Actually I seem to remember when I first looked at a map to try and understand how the remaining players got the leftover stuff I see an image in my memory of a series of individual players listed as recipients. But that was years ago.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
Quote from name:Dem0nS1ayer
Uh yes you can. Check sunken def maps. Those will say "Give Units to Force at 'location'."
No need to get crazy about this. lol.
Ahli is right, you cannot give units to a force but you can make a trigger that is owned by the force and gives to current player.
That's how the sunken defs do it.