I’m trying to create a race system where players can choose and race with other players however, Im not sure how I would create a room system where multiple players can create races with different people at the same time. My previous attempt was to create an array with all the players of one race inside it but i didn’t know what to do when multiple people made races so i scrapped the idea. Any help would be appreciated.
You mean a party system in terms of “rooms”, no?
Sort of, basically a system where i can organize every race and its players into a container so if someone from, say race 3 declines i can send a message to everyone in race 3 that they declined.
Would recommend that you try to actually think of what would need to happen, You’re asking something broad which is pointless since you will want it done a specific way. You should attempt to find a starting point and continue working off of it. For example you would need some form of interface with the ability to create rooms via a button with several options and then firing to server that the player wants to create a room. Then you would have a folder in replicated called “Rooms” and would apply a new room
Well yea I agree I should do that but i still get stuck with what to do after a certain point, as of now I have it so a player can choose any other player or players from their server and send them and invite, from there Im just not sure how the actual rooms themselves would work although, I can specify that I need to be able to manipulate the people in each room, of course I know that’s probably still too broad but I would appreciate if anyone could share any ideas as even if they don’t fit the criteria I can still get inspiration from them.
I personally feel like the approach you’re taking isn’t the friendliest of UX. Since the host of the room will always have to invite people, IMO it would be far better if it was something like adventure up/blade quest where you have the option to make your room Code Only/Friends Only/Public and then people can view your room in a “Room List”. What do you mean you’re not sure about how the actual rooms would work? Each player would have an ID on them in their personal stats with an object value of the Current Room they are in/future, Then for each room you would have a “Playerlist” folder for all the players that are in that room. The rest is just settings such as MaxPlayers, room type, game specific information such as map/difficulty. And pressing start just has an effect on the playerlist folder containing objectvalues of all the players, if a player leaves then check their currentroom obj value if its not nil then it means they are in a room so go to playerlist and remove their obj value, playerlist.ChildRemoved/ChildAdded on UI to make it visually change the amount of current players / max players