Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Detecting who is in-game
Detecting who is in-game
Nov 30 2008, 8:24 pm
By: SiN  

Nov 30 2008, 8:24 pm SiN Post #1



In a map I've been working on, I've been having an odd problem. Even when some players are not active it will still create units for them with the "create unit" trigger. So I simply need to know how I can detect at the beginning of the game if a player is active or not.



None.

Nov 30 2008, 8:25 pm Symmetry Post #2

Dungeon Master

Isn't it as simple as 'player x commands at least 1 y' at the beginning of the map (or alternatively, each trigger that creates stuff for that player)?



:voy: :jaff: :voy: :jaff:

Nov 30 2008, 8:26 pm Devourer Post #3

Hello

Quote from SiN
In a map I've been working on, I've been having an odd problem. Even when some players are not active it will still create units for them with the "create unit" trigger. So I simply need to know how I can detect at the beginning of the game if a player is active or not.

Place a Unit or each player which never dies....
then start "current player command at least/exxactly 1 of UNIT"
that's all....^^



Please report errors in the Staredit.Network forum.

Nov 30 2008, 8:27 pm SiN Post #4



Should I preplace it?



None.

Nov 30 2008, 8:27 pm Devourer Post #5

Hello

Yes.



Please report errors in the Staredit.Network forum.

Nov 30 2008, 8:28 pm SiN Post #6



Alright thanks, that's all I needed.

Moderator may lock.



None.

Nov 30 2008, 8:43 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

That's not a very good way of doing it. Death counts would be better, or Killer Kow's method. By placing units which never die, you essentially waste your max units in the map, and I don't think it looks good.

Preplaced units and Triggers won't run for players who aren't there. However, if another player has a trigger which creates units for the player who left, those units will still be created.

I suggest you change your triggers to only have units created for current player, and give them to the appropriate player.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Nov 30 2008, 9:29 pm NudeRaider Post #8

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 rockz
I suggest you change your triggers to only have units created for current player, and give them to the appropriate player.
This.

Everything else is just cleaning up the symptoms of poorly made triggers.




Nov 30 2008, 11:14 pm Falkoner Post #9



This bug only happens when you specifically tell the game to create a unit for a player who is not there. Now, usually triggers like this don't run, because in most cases the map maker puts the triggers that create units for the player, under the player the units will be owned by, so if the player is gone, the triggers creating the units don't run.

However, in your case you probably had a computer own the trigger creating the unit, so it created units for "Ghost Players" which by default are enemies to the players, the reason why using Current Player instead works is because if you set it for a force, the trigger is simply split into multiple triggers, for each active player, so if the player isn't there, the trigger split for him doesn't run.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
Please log in to shout.


Members Online: Roy, charlesmiller