Leaver heroes move to some region

NightMagi

Member
Reaction score
5
will this trigger work?

Trigger:
  • check if playing
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked player) controller) Equal to User
          • ((Picked player) slot status) Equal to Has left the game
        • Then - Actions
          • Set LeaverUnitGroup = (Last created unit group)
          • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
            • Loop - Actions
              • Unit - Move (Picked unit) instantly to (Random point in used heroes <gen>)
              • Unit - Change ownership of (Picked unit) to Neutral Passive and Change color
          • Custom script: call DestroyGroup(udg_LeaverUnitGroup)
        • Else - Actions
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Event:
- Player 1 leaves the game
- Player 2 leaves the game
- ...
Conditions:
Actions:
- Set LeaverUnitGroup = Unit owned by (Triggering player)
- Pick every unit in ... same as above.

You have a point leak on "random point in ...".
 

NightMagi

Member
Reaction score
5
Event:
- Player 1 leaves the game
- Player 2 leaves the game
- ...
Conditions:
Actions:
- Set LeaverUnitGroup = Unit owned by (Triggering player)
- Pick every unit in ... same as above.

You have a point leak on "random point in ...".

you see, i already have a trigger like this, but when a hero is dead, and the player leaves, the hero stays in the arena and is not moved to the hero zone, so i want the game to check every 10 secons if the player is a user and is a leaver, then move his units to the hero zone.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Then something on that trigger is not as it should be.

It's somewhat pointless to check this every 10 seconds... people don't leave more than once.
Additionally, once they left, they left and this will run for those units every 10 seconds regardless...
 

NightMagi

Member
Reaction score
5
Then something on that trigger is not as it should be.

It's somewhat pointless to check this every 10 seconds... people don't leave more than once.
Additionally, once they left, they left and this will run for those units every 10 seconds regardless...

the trigger is:

Trigger:
  • move hero
    • Events
      • Player - Player 2 (Blue) leaves the game
      • Player - Player 3 (Teal) leaves the game
      • Player - Player 4 (Purple) leaves the game
      • Player - Player 5 (Yellow) leaves the game
      • Player - Player 6 (Orange) leaves the game
      • Player - Player 7 (Green) leaves the game
      • Player - Player 8 (Pink) leaves the game
      • Player - Player 9 (Gray) leaves the game
      • Player - Player 10 (Light Blue) leaves the game
      • Player - Player 11 (Dark Green) leaves the game
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to (Random point in used heroes <gen>)
          • Unit - Change ownership of (Picked unit) to Neutral Passive and Change color


(i will fix the point leak)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top