I want to have multiple characters you unlock as you progress the story, and for example i don't want MC to be level 25 when character i recruit would be presetted to level 15 or so. So is there a way to make characters you recruit to have same level as MC if MC is higher than preset minimum level of recruitable character? So if MC is level 25, recruited character would be also level 25, but if MC's level is lower (let's say 10) and recruitable character has preset level 15, recruit would still be level 15 when recruited.
Character levels equal to MC when acquired if MC is higher
RPG Maker MZ SupportYes. I am sure there are a few different things you could try, but here is what I would try first.
I would create an event where the character can join the party. Then, during the join the party process, I would do a conditional branch check to see what level either the Lead party member is or perhaps the average level of the party. You can get this information and save it in a variable.
The conditional branch(es) can manually level up the character that is joining to match the level.
There is an Event Command option you can use to manually level up a character.
You can experiment with just that part by having an event where you can level up the party each time you interact with it. Just to experiment with how it works.
I would try that first unless someone else offers a simpler way.
I don't know the Event Commands off the top of my head to reference them, but if you need more help, I can try to do that as well.
Good luck!
I would create an event where the character can join the party. Then, during the join the party process, I would do a conditional branch check to see what level either the Lead party member is or perhaps the average level of the party. You can get this information and save it in a variable.
The conditional branch(es) can manually level up the character that is joining to match the level.
There is an Event Command option you can use to manually level up a character.
You can experiment with just that part by having an event where you can level up the party each time you interact with it. Just to experiment with how it works.
I would try that first unless someone else offers a simpler way.
I don't know the Event Commands off the top of my head to reference them, but if you need more help, I can try to do that as well.
Good luck!
Setting the initial level to 15 is a non-issue, as that's a setting in the DB. As for the leveling thing, you'd probably need a conditional branch. The sub-thought in my head is that you use the Script function, and put in something like...
...to check if the level of the MC (I'm assuming that's Actor #1 in the database) is greater than the level of the actor you're about to add. You should be able to replace the "?" with the actor's ID that you want to add.
If the statement returns true, you can place the difference of the levels into a game-variable...
...like so, again subsituting the "?" for the actual actor ID in the database. You shouldn't need an "else" case. Then, I think you might be able to use the Change Actor Level event-command to add a number of levels, and specify a game-variable for how many levels to add. In this example, it's game-variable 1. You may also want to consider using an all-recover event-command on the actor, though, I don't recall off-hand if you can select a specific actor for that event-command, or not, though, I feel it's probably the case.
At this point, at least in theory, you should be able to use the add member to the party with the event-command as normal, and they would be at either whatever level they were set in with the DB settings, or whatever level the MC is at.
$gameActors.actor(1).level > $gameActors.actor(?).level...to check if the level of the MC (I'm assuming that's Actor #1 in the database) is greater than the level of the actor you're about to add. You should be able to replace the "?" with the actor's ID that you want to add.
If the statement returns true, you can place the difference of the levels into a game-variable...
$gameVariables.setValue(1, $gameActors.actor(1).level - $gameActors.actor(?).level...like so, again subsituting the "?" for the actual actor ID in the database. You shouldn't need an "else" case. Then, I think you might be able to use the Change Actor Level event-command to add a number of levels, and specify a game-variable for how many levels to add. In this example, it's game-variable 1. You may also want to consider using an all-recover event-command on the actor, though, I don't recall off-hand if you can select a specific actor for that event-command, or not, though, I feel it's probably the case.
At this point, at least in theory, you should be able to use the add member to the party with the event-command as normal, and they would be at either whatever level they were set in with the DB settings, or whatever level the MC is at.
Could you try? I can't make any heads or tails from this stuff. I'm not good in advanced computer stuff. I can barely manage with video guides or pictures right now.
Here is a mock up to what ZombieKidzRule was saying:
1. Set a variable to store your main character's level:
2. Conditional Branch:
1. Set a variable to store your main character's level:
2. Conditional Branch:
- If main character's level is less than or equal to 25, new hero joins at level 25.
- If main character's level is above 25, new hero joins at the same level as main character.
Big thanks to you
Original thread: https://forums.rpgmakerweb.com/threads/character-levels-equal-to-mc-when-acquired-if-mc-is-higher.157689/