This script provides you the ability to switch players in-game.
Unlike adding/removing party members to give the illusion that you're working with different people, this script allows you to create completely separate players that have nothing to do with each other.
All inventories are separate from each other (until I implement shared inventory), they have their own parties, possibly even their own HUD's.
- Real-time player switching
- Other players are drawn on the map where you left them
- Idle players move around randomly
- Can set up players to say random things
- Check whether any player is at an event position, or whether a specific player is at an event position.
- Immediately switch if there are only two players.
By default, you have one player: you.
You begin by creating a new player, giving an actor ID as the party leader for that player
Once your player is created, the script will set up all of your party information and your actor information for your new player.
Now on the game map, when you press the A key (in-game "X"), it will open the player-switch menu where you can switch players
Your other players on the same map will randomly move around and you can even talk to them!
This script provides the basic functionality for player-switching.
I am aiming for full switching functionality where all of the other players are treated as events and you can talk to them and stuff.
I would like to create puzzles where you have to control multiple players. For example, maybe you need to step on two buttons at the same time, but this clearly isn't possible with only one player. The solution would be to switch players and coordinate them together. However, that will have to wait until I work out the details.
In terms of aesthetics, maybe this would probably be a better menu lol