Staredit Network

Staredit Network -> UMS Assistance -> Nonexistent Players
Report, edit, etc...Posted by Kaias on 2007-01-13 at 20:58:40
When you give a unit to a player that isn't playing, that unit is automatically your enemy. You can ally with them, but I cannot make them (nonplaying players) ally with me.

How can I counter this?

How can I make them allies, or even better, how can I give them to other playing players?
Report, edit, etc...Posted by Falkoner on 2007-01-13 at 21:17:38
Well, i think you could use the give units owner by all players, but if that doesn't work, then just counter the creation of those units by using current player, not create 1 unit for player?
Report, edit, etc...Posted by DT_Battlekruser on 2007-01-13 at 21:59:59
You can't solve the problem once you create units for nonexistent players; they will always be neutral hostile. Like said, try to have a situation where units are created for Current Player, to avoid creating them for players that don't exist.
Report, edit, etc...Posted by Falkoner on 2007-01-14 at 08:43:37
Or by sticking the triggers that create units for player 1 in the player 1 slot, that way if he is missing, none of the triggers in his slot run, so none of his units are created
Report, edit, etc...Posted by Wormer on 2007-01-14 at 11:37:45
Why you guys are thinking that Kaias is CREATING units? He said that he is GIVING units to other players.

Kaias, I think that you cannot make the unpresented players ally with you because to ally they must execute an action (just placing those players in the same force with ally flags checked dont help as you can see), but triggers dont execute for unpresented players.

But as I understand from your post you want to somehow detect and regive these units to other players. And there is a way. It is interesting that such units (that are given or created for unexistent player) are affected only by actions and detected only by conditions using EXACTLY those player, but not the conditions using Force or All Players. For example you have a marine unit for unexistent Player 2 (it even does not matter if Player 2 has Start Location or not). It means that the marine will be killed (detected) by action 'Kill Marine for Player 2 at Location' (condition 'Player 2 brings At Least 1 Marine to Location') but not affected by action 'Kill Marine for All Players at Location' (condition 'All Players brings At Least 1 Marine to Location').

Using this you can detect such units and regive them to other players which present at the game or remove them if you like.
Report, edit, etc...Posted by PCFredZ on 2007-01-14 at 11:55:18
QUOTE(Wormer @ Jan 14 2007, 10:37 AM)
Why you guys are thinking that Kaias is CREATING units? He said that he is GIVING units to other players.
[right][snapback]613610[/snapback][/right]

The effect applies for both the Create and Give actions.

Kaias, can you post your map or the triggers you used in the map which involve the Give action? We can probably suggest alternative ways to do the triggers so that the units wouldn't be given to a nonexistent player in the first place.
Next Page (1)