Player event variables?

M

MomemtumMori

Guest
Im trying to simplify a trigger for leavers, and I wanted to put a variable for a player like :

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 :(
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
under the event you can't use the varible, you need to enter each player, so if you have 8 players you need to do 8 events.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top