Arena logic issue

Not sure if it goes here but I've run in a bit of a snag. I am creating a tournament consisting of 10 players. Player 10 and Player 9 are the protagonists. They can't be paired with each other. The User controls Players 10 and will go up to the remaining 8 characters to choose a teammate. I want the player to be able to choose numbers 1-8 freely and then have the remaining 8 players be paired with each other. I'm sure there is a script that can be made to do this but I'm not a programmer. Any insight would be appreciated!
Moved to: MV Support

this might need to be moved to Plugin Requests, but I suspect people will have a few questions for you first to clarify your needs.
It's hard to give you advice without details about how this is actually working in your game.

Do you have these 8 characters standing in a room as events to interact with, and you go up to them and select "Yes, I want you as my partner"?

Then you just set a game switch depending on which one they chose, and have blank pages on the other events to make them disappear.

So if I choose character 3 to be my partner, I'll turn on switch, say, 10.

Then I'll give the events for characters (for example) 2, 5, 6, 7, and 8 to have a second event page with the condition of switch 10 and nothing on them. So they lost their bouts and disappeared.

You could also do this with one variable instead of multiple switches, you just have to be careful because event conditions can't check for the variable to be a specific value, only >=.

If that's basically what you're talking about, I don't see why this would need any scripting.

If you mean something else entirely, please describe clearly how you want it to work - what the player does in the game and sees because of it.
So I've figured out how to choose one partner from 1-8 which then turns off the switch for any other fighter being available.

What I have to do next (as efficiently as possible) I'd like them to form 5 teams. The teams Will then be put into a single elimination tournament. The protagonist who we play as will be team A and the second protag who we wont control during the tournament will be team D And i'll have it so one of them win in the finals.

Instead of going through the list of assigning teams and troops per scenario, i was wondering if it was possible to create something like if he chooses 3 to be the partner eliminate the choice for 9(the other protagonist) and assign the remaining 8 to be on teams so I can create the bracket and have it play out.

Thats the best I can explain it. I know i could write multiple statements saying if choose 3 make 7 and 8 be a team so on and so forth but there must be an easier way to sort this.
Okay, that's some information. I think you skipped over the part where I said you should clearly describe what the player is going to see, because:
Instead of going through the list of assigning teams and troops per scenario, i was wondering if it was possible to create something like if he chooses 3 to be the partner eliminate the choice for 9(the other protagonist) and assign the remaining 8 to be on teams so I can create the bracket and have it play out.
does this mean you want the player to sit through a cutscene of the randomly assigned people actually fighting?

If yes, you do exactly what I said above except you use the switch/variable to determine which characters are being shown on which team. There's really no reason for it to be actually random unless you think people are going to replay your game and notice whether the fight is different or not.

You could use the event commands to assign variables a random value and use that, but I wouldn't think it's necessary.

Thats the best I can explain it. I know i could write multiple statements saying if choose 3 make 7 and 8 be a team so on and so forth but there must be an easier way to sort this.
Not really, that's how you do it whether it's in JavaScript or event commands.

Note that you really don't need many different conditionals. For example, 7 and 8 can always be a team unless the player chooses one of them for their own partner, so that's only two conditionals.

I would make a list of variables that have the values 1-8. Swap the variable of the character the player chose for 10 (the other protagonist). If you make the variables be adjacent in order, you can use one script call to make this really easy.

So the set up would be, say,
variable 1 = 1
variable 2 = 2
...
variable 8 = 8

Then set variable 9 to the number the player chose.

Then do an event command of Script and put:
Code:
$gameVariables.setValue($gameVariables.value(9), 10);

Then you team up 1&2, 3&4, etc., and whichever the player chose will be swapped with 10.

If that doesn't do it for you, perhaps you can post screenshots of what you already have set up.
No that works out perfectly, that's what i need thank you for the quick response.
Note that you really don't need many different conditionals. For example, 7 and 8 can always be a team unless the player chooses one of them for their own partner, so that's only two conditionals.
Yeah that makes it a lot easier I didn't think of it that way. I planned on making it that way but instead of using multiple conditions 2 is what i need.

Original thread: https://forums.rpgmakerweb.com/threads/arena-logic-issue.153761/