Ok i made a respawn trigger that dosent work. Its supposed to trigger when a unit dies, and it checks if any units for that player is still alive, if its true, then it creates a selector. Heres how the thing looks like...
Event - A unit dies Condition - Get unit alive(Number of units(Get owning player)equal to 0 Action - Create 1 Selector for Owner(Dying unit)Facing triggering unit.
For some weird reason the condition is retarded. All the units are no longer there, but it still wont spawn the selector...
What is this selector? And what exactly is it you are trying to make, is it like that respawn system like in Run Kitty Run & Shroom World? if so then just open the RKR maps and take a look on how it is done there.
If it is not that you are trying to make then ignore this post
is it possible that you have created any other units than the selector?
i do not yet understand totaly what you want to archieve with that trigger. Do you want the hero to select a new one if he dies or do you want to do something different?
Please tell how many units a player has - including all structures... for the respawn condition you check that the player has NO other units - that includes stuff like selection circles...
There are no other units besides the one you chose with the selector. The selector is just a unit that dies when it enters a unit region choosing a unit.
This trigger is supposed to create another SELECTOR once all the units already chosen dies.
Also there are no other units to the players except the selector, but it dies when it chooses a unit.
And the unit itself, which, when it dies, spawns a selector.
Also, do corpses count as units? If so then i have to make it so it doesnt count corpses...
Conditions: (This is an integer comparison) Number of units in Playable Map Area owned by (whatever player) equal to 0
Events: Create 1 Selector for (whatever player yet again) at the center of (the region)
You can do it that way, as long as the condition can be done. You can also do units matching condition in the integer comparison if you can't use a "Units owned by player in region" function.