ScyallGames

Villager
Member
Joined
Oct 19, 2018
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMV
I'm wondering how I could achieve what is stated above. Where you merge or add the difference between your stats of another actor. I'm trying to create a game where you have a partner is a living weapon and when in battle you transform merging together sharing abilities and stats. the skills I could achieve with conditional branches but I can't seem to figure out how to do the stats merging and the after battle it goes back to normal. Any ideas how this could be done?
 

Zevia

Regular
Regular
Joined
Aug 4, 2012
Messages
677
Reaction score
412
First Language
English
Primarily Uses
RMMV
You could store the partner's stats in variables. Something like, set variable 1 to partner ATK, variable 2 to partner DEF, variable 3 to partner MAT, etc. Whatever stats you want to merge.

Then you can use the Change Parameter command on page 1 of Event Commands to increase the actor's various stats by those variables in whatever event you're using to handle the transformation. After the battle, you can then change the actor's stats by subtracting the variables.
 

ScyallGames

Villager
Member
Joined
Oct 19, 2018
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMV
You could store the partner's stats in variables. Something like, set variable 1 to partner ATK, variable 2 to partner DEF, variable 3 to partner MAT, etc. Whatever stats you want to merge.

Then you can use the Change Parameter command on page 1 of Event Commands to increase the actor's various stats by those variables in whatever event you're using to handle the transformation. After the battle, you can then change the actor's stats by subtracting the variables.
That's the issue... I can't seem to figure out how to do it. I know how to set up the variables and everything but I can't figure out how to add the stats in battle and once out of battle remove the stats and now I just came up with something else... to remove and add party members once in and out of battle since your merging together.
 

Zevia

Regular
Regular
Joined
Aug 4, 2012
Messages
677
Reaction score
412
First Language
English
Primarily Uses
RMMV
Here's one possible solution, though there are a number of ways you could approach this. For this example, we'll say that Harold merges with Therese.

Create a common event called merge. Here, you're going to set your variables, increase the actor's stats by those variables, remove the merged party member, then turn on a switch that keeps track of whether you're currently merged or not (useful for reverting at the end of battle). I also added in a line that will change the actor's graphic, to make it more obvious they've changed into something new.
X2MPSRB.png

You'll also want a common event that will revert these changes, so create one that basically does everything in reverse.
5gyEFZg.png

Now we'll make a skill called Merge. You can give it whatever icon and other settings you want, the important part is to call your Merge common event.
QxeQngT.png

Now give that skill to your actor, and you should have the basics ready to go.
fFcwX4Q.png

TrkHHBF.png

sboXHTj.jpg


Immediately after the battle:
UyPd7Yx.png

The reason you have the "Remove Merge" common event set to autorun with a condition of the Merge switch is that common events will not run from autorun or parallel process in the middle of battle. So your "Merge" common event turns the Merge switch on, then as soon as the battle is over and the player is back to a scene that would process common events, it will run, undo the merge, then turn the switch off so that it doesn't loop infinitely.

There are some other concerns I didn't address here, as well - what if Therese is dead? What if Therese is not in the party? What if you're already merged? You'll probably want to create a state that locks the Merge skill so that you can't try to Merge again if you're already merged.

If you want to give the merged party member a completely different set of skills, you'll probably want to change the class, too.

Hopefully this should give you some of the basic first steps to get going, though.
 

ScyallGames

Villager
Member
Joined
Oct 19, 2018
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMV
Here's one possible solution, though there are a number of ways you could approach this. For this example, we'll say that Harold merges with Therese.

Create a common event called merge. Here, you're going to set your variables, increase the actor's stats by those variables, remove the merged party member, then turn on a switch that keeps track of whether you're currently merged or not (useful for reverting at the end of battle). I also added in a line that will change the actor's graphic, to make it more obvious they've changed into something new.
X2MPSRB.png

You'll also want a common event that will revert these changes, so create one that basically does everything in reverse.
5gyEFZg.png

Now we'll make a skill called Merge. You can give it whatever icon and other settings you want, the important part is to call your Merge common event.
QxeQngT.png

Now give that skill to your actor, and you should have the basics ready to go.
fFcwX4Q.png

TrkHHBF.png

sboXHTj.jpg


Immediately after the battle:
UyPd7Yx.png

The reason you have the "Remove Merge" common event set to autorun with a condition of the Merge switch is that common events will not run from autorun or parallel process in the middle of battle. So your "Merge" common event turns the Merge switch on, then as soon as the battle is over and the player is back to a scene that would process common events, it will run, undo the merge, then turn the switch off so that it doesn't loop infinitely.

There are some other concerns I didn't address here, as well - what if Therese is dead? What if Therese is not in the party? What if you're already merged? You'll probably want to create a state that locks the Merge skill so that you can't try to Merge again if you're already merged.

If you want to give the merged party member a completely different set of skills, you'll probably want to change the class, too.

Hopefully this should give you some of the basic first steps to get going, though.
Thanks a lot! You did more than enough for me I can figure out the rest and if not I'll be sure to let you know.
 

Latest Threads

Latest Posts

Latest Profile Posts

Last Link Click episode is coming out late tonight.
I'm a bundle of nerves right now. They announced there would be a third season, but still....
I'm very tempted to stay up and watch it, but at the same time, I have work tomorrow.
I just know they're going to do somethin' crazy, and I don't know if I'm gonna like it.
uh-oh.gif
A few more npc designs, two of these are just edits of the first but it's just concept art, it's just supposed to get the point across, not be super complex.
Arachne-Grunts.png
FFXIV Tabletop game, 'eh? I'm not sure I can hit the "preorder" button enough times.
pixelart2.png
Second sprite in progress!

And here is a track i did as a commission for a game that will sadly not happen. But i will go for that style for that short game so it gives an idea of how it will sound like!
bandicam 2023-09-21 23-09-57-283.png
One of those characters that can diversify the walkthrough)

Forum statistics

Threads
134,699
Messages
1,249,871
Members
177,450
Latest member
jaumander
Top