Lock Player Slots on User?

Level 4
Joined
Aug 11, 2017
Messages
16
I made a map where 2 of my player slots needs to stay on User so the AI can work like I want it to. Is there a way to lock player slots to User while preventing players to join this slot? Computer, Neutral, None and Rescuable won't work in that case.
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,866
I made a map where 2 of my player slots needs to stay on User so the AI can work like I want it to. Is there a way to lock player slots to User while preventing players to join this slot? Computer, Neutral, None and Rescuable won't work in that case.
In the Player Properties menu you need to check on Fixed Player Settings.

I also suggest using Player Group variables and Player variables, you shouldn't really ever check if "Player 1 (Red) does this".

It'd be much better to do something like this:
  • Events
    • Player - User_Host types a chat message containing -Start as an Exact string
Or this:
  • Player Group - Pick every player in Users_Playing and do (Actions)
    • Loop - Actions
Variables:
  • A Player Group which contains both Users regardless of their status.
  • A Player Group which contains Users that are actively playing. Remove them when they leave the game or if their slot was empty from the start.
  • A Player Group which contains enemy Computers, one which contains allied Computers, etc.
  • A Player variable for the "Host". If say Red is your usual Host and leaves the game, Player 2 could become the new Host with a simple switch of the variable. If your triggers are setup in a flexible way then everything should continue to work as expected.
This often improves efficiency and organization as well.
 
Top