im making a d map and im having a little trouble. when a player isnt there p8 units are still running. how do u make it so if a player leaves or isnt there it wont make units?
i have:
timer is at most 0 mili
current player commands exactly 0 buildings
end sceniaro defeat.
btw thanks falkonor for your site on death counts..helped out alot
None.
im making a d map and im having a little trouble. when a player isnt there p8 units are still running. how do u make it so if a player leaves or isnt there it wont make units?
i have:
timer is at most 0 mili
current player commands exactly 0 buildings
end sceniaro defeat.
btw thanks falkonor for your site on death counts..helped out alot
Defence Map?
Anyway, defeat just says that it ends in defeat, not the units, and it only works for that player which is ticked in the trigger.
When you dont want to allow p8 units run at a spot where that player has left make this:
Player X commands exactly 0 Units
action: preverse trigger
action: kill all units for p8 @ Player X spawn
Hope that helps.
Please report errors in the Staredit.Network forum.
If a player leaves, any triggers owned by them stop running. So if you want to detect a player leaving, you need to have a trigger running for a computer that goes like "Player 1 commands exactly 0 any unit: <whatever actions you want>". (If you don't have a spare computer, you can have it run for All Players. Now I know that you have a computer player because it's a defense map, but it might be useful in the future.)
Oh, and do what DeVouReR said as well.
Post has been edited 1 time(s), last time on Dec 29 2008, 4:00 pm by TassadarZeratul. Reason: The edit reason is a lie.
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
Generally you should stay away from conditions and actions that use specific players if they're not computers (e.g. Create 1 unit for P1)
Instead have the trigger owned by that player (or his force) and use Current Player (e.g.P1: Create 1 unit for C.P.)
This is because - as was already said - absent players don't execute triggers.
In your case, do what Devo suggested (e.g. P1: Current Player commands at least 1 [any unit] -> Create 1 unit for P8)
btw thanks falkonor for your site on death counts..helped out alot
You're welcome

Specifically what do you want? Do you want the units to just stop spawning anymore once he leaves, or do you want any already spawned units to disappear as well?
I would definitely recommend just going with the first one, as doing the second one could cause glitches and is very annoying to set up. Now, it's already been explained, but I figure it helps to give you three different explanations.
The problem you are having right now is that the triggers creating units for that player continue to run once he leaves. Now, the reason why this is happening is most likely because you put the triggers that create the running units for that player under another player, most likely a computer player. So while that player may leave, those triggers continue to run, since the other player who actually has those triggers has not left.
In order to fix this, simply put the triggers that create the units for each player under the player they are being created for, that way once the player leaves, those triggers no longer run, so his units are no longer created.
None.