I want to make an event where the player can talk to specific NPCs and be given the opportunity to hire them as a temporary party member. This NPC party member cannot have their equipment changed and will be recruited at the same level that the player is at the moment they hired them. After a set number of fights the NPC party member will say something like "My job is done" and leave the party. I also want to make it so that the price to hire a mercenary NPC scales with the player's level so something like Player level * 100. Anyone know how I can do that?
How do I make a "Mercenary Event" for lack of a better term
RPG Maker MZ SupportThe same way you add any party member. You create some actors(with locked equipments), use the event to add them to your party, use a variable to store the cost, etc. So what part you don't know?
How to make them leave after a set number of battles, how to use player level as a variable in calculating how much should be payed, and how to alter the NPC's level based on player level.
You can get all this info in your variable commands.
For example:
It seems you can't set the level to a specific value, but only increase/decrease it.
So there's a script needed, like this (untested) :
(9 is the actorID of the mercenary in this example, and 1 has to be the ID of the Variable holding their level)
I don't know about the standard battle system of RPG Maker. But somewhere you want to add in something like this:
For example:
It seems you can't set the level to a specific value, but only increase/decrease it.
So there's a script needed, like this (untested) :
JavaScript:
$gameActors.actor(9).changeLevel($gameVariables.value(1), false);
I don't know about the standard battle system of RPG Maker. But somewhere you want to add in something like this:
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-a-mercenary-event-for-lack-of-a-better-term.174651/