M
MomemtumMori
Guest
Im trying to simplify a trigger for leavers, and I wanted to put a variable for a player like :
but the editor tells me : No generated variables of this type exist.
is there a way to put a variable via a script or a mod?
sry if its hard to read
Event
-> Player - [Player variable] leaves the game.
Conditions
Actions
-> Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
--> Loop - Actions
----> If (Condition are True)then do (Then Actions) else do (Else Actions)
------> If - Conditions
--------> (Owner of (Picked unit)) Equal to [Player variable]
--------> ((Picked Unit) is A structure) Equal to True
------> Then - Actions
--------> If (Condition are True)then do (Then Actions) else do (Else Actions)
----------> If - Conditions
------------> (Unit-type of (Picked Unit)) Equal to Demons
------------> (Unit-type of (Picked Unit)) Equal to Unused Race Slot
----------> Then - Actions
------------> Unit - Remove (Picked Unit) from the game
----------> Else - Actions
------------> Unit - Change Ownrship of (Picked Unit) to (Ramdom player from Payers_ON) and Change Color
------> Else - Actions
--------> Do nothing
but the editor tells me : No generated variables of this type exist.
is there a way to put a variable via a script or a mod?
sry if its hard to read