Guys I'm making a system that when a player types -s he will be teleported to the shop. And if he presses `esc` he will go back to his last position. Can you check the leaks for me? I'm not 100% sure it's leakless.
-
Enter Shop
-
Events
- Player - Player 2 (Blue) types a chat message containing -s as An exact match
- Player - Player 3 (Teal) types a chat message containing -s as An exact match
- Player - Player 4 (Purple) types a chat message containing -s as An exact match
- Player - Player 5 (Yellow) types a chat message containing -s as An exact match
- Player - Player 6 (Orange) types a chat message containing -s as An exact match
- Player - Player 8 (Pink) types a chat message containing -s as An exact match
- Player - Player 9 (Gray) types a chat message containing -s as An exact match
- Player - Player 10 (Light Blue) types a chat message containing -s as An exact match
- Player - Player 11 (Dark Green) types a chat message containing -s as An exact match
- Player - Player 12 (Brown) types a chat message containing -s as An exact match
-
Conditions
- In_Shop Equal to False
-
Actions
- Set In_Shop = True
- Set Player_UNITS_GLOBAL = (Units in (Playable map area) owned by (Triggering player))
- Trigger - Run ShopEnterMessage <gen> (ignoring conditions)
-
Unit Group - Pick every unit in Player_UNITS_GLOBAL and do (Actions)
-
Loop - Actions
- Set LastPosition[(Player number of (Triggering player))] = (Position of (Picked unit))
- Unit - Move (Picked unit) instantly to (Center of Shop <gen>)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Player_UNITS_GLOBAL)
-
Events
-
LeaveShop
-
Events
- Player - Player 2 (Blue) skips a cinematic sequence
- Player - Player 3 (Teal) skips a cinematic sequence
- Player - Player 4 (Purple) skips a cinematic sequence
- Player - Player 5 (Yellow) skips a cinematic sequence
- Player - Player 6 (Orange) skips a cinematic sequence
- Player - Player 8 (Pink) skips a cinematic sequence
- Player - Player 9 (Gray) skips a cinematic sequence
- Player - Player 10 (Light Blue) skips a cinematic sequence
- Player - Player 11 (Dark Green) skips a cinematic sequence
- Player - Player 12 (Brown) skips a cinematic sequence
- Conditions
-
Actions
- Set In_Shop = False
- Set Player_UNITS_GLOBAL = (Units in (Playable map area) owned by (Triggering player))
- Cinematic - Clear the screen of text messages for (Player group((Triggering player)))
-
Unit Group - Pick every unit in Player_UNITS_GLOBAL and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to LastPosition[(Player number of (Owner of (Picked unit)))]
-
Loop - Actions
- Custom script: call DestroyGroup(udg_Player_UNITS_GLOBAL)
-
Events