Player or Force
Jun 10 2008, 1:59 am
By: Kidz.Gone.Wild  

Jun 10 2008, 1:59 am Kidz.Gone.Wild Post #1



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.

Jun 10 2008, 2:00 am Brontobyte Post #2



Most likely not, but if you change something it will affect your Force triggers. Player is more specific. :D



None.

Jun 10 2008, 10:28 am NudeRaider Post #3

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.




Jun 10 2008, 10:35 am Ahli Post #4

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.




Jun 10 2008, 6:04 pm SiN Post #5



I thought that force triggers fire before player triggers? isn't there an order of operation for triggers?



None.

Jun 10 2008, 6:44 pm Heegu Post #6



Quote from Ahli
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.

Jun 10 2008, 7:22 pm Falkoner Post #7



Quote
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.

Jun 11 2008, 12:11 am Ahli Post #8

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from Heegu
Quote from Ahli
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.

Quote from Falkoner
Quote
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:
give to force test.scm
Hits: 2 Size: 41.77kb




Jun 11 2008, 6:39 pm Dem0n Post #9

ᕕ( ᐛ )ᕗ

Uh yes you can. Check sunken def maps. Those will say "Give Units to Force at 'location'."




Jun 11 2008, 6:47 pm SiN Post #10



uhh...there are like hundreds of sunken defense maps, be more specific.



None.

Jun 11 2008, 7:34 pm Ahli Post #11

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).




Jun 12 2008, 1:58 am Kidz.Gone.Wild Post #12



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.

Jun 13 2008, 9:54 pm NudeRaider Post #13

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.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:59 am]
NudeRaider -- *is
[05:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
[2024-5-12. : 8:44 pm]
l)ark_ssj9kevin -- Hi Brusilov
[2024-5-12. : 4:35 pm]
O)FaRTy1billion[MM] -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
my server that was hosting it died
[2024-5-10. : 8:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
Please log in to shout.


Members Online: Roy