How do I carry levels between characters? [VX Ace]

MCBill

Warper
Member
Joined
Apr 13, 2021
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMVXA
The game I'm trying to make is separated into multiple parts, and in each part the main character changes too much for it to be the same actor in the database. What I'm wondering is how you could transfer things like levels and items between the characters.
 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
71
First Language
Dutch
Primarily Uses
RMVXA
Do you want for the "new" character to be the same level as your "starting" character?

In that case, you can set a variable to the level of the character and have your new character have the same level. This even works with a new class.
 
Last edited:

Dungeonmind

Lvl 4000 Humanoid
Veteran
Joined
Sep 2, 2013
Messages
539
Reaction score
384
First Language
English
Primarily Uses
RMMV
Easy. Just store the current actor id’s level into a variable then once your switching to a new hero you just need to add that variable to the new hero’s level.
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,132
Reaction score
706
First Language
English
Primarily Uses
RMVXA
set a variable to the level of the character
store the current actor id’s level into a variable
You also have to subtract 1 from the variable so that when you add the levels it will be the same as the original.
actor 1 is level 15 -> variable = 15
actor 2 is level 1 -> + 15 = 16
This is because the event command is increase not equal to.

transfer things like levels and items between the characters
When you talk about items it may be difficult. If these are inventory items then it is easy, there is no change to the items unless you have actor inventory scripts. If it is equipped items then a script needs to be used to remember all the items the actor has and re-equip them onto the new actor.
the main character changes too much
What is changing? The actor stats? the graphic? Those can be adjusted.
 

Walldeaf

The Event-Master
Veteran
Joined
Apr 29, 2013
Messages
91
Reaction score
71
First Language
Dutch
Primarily Uses
RMVXA
actor 1 is level 15 -> variable = 15
actor 2 is level 1 -> + 15 = 16
This is because the event command is increase not equal to.
This can be changed I believe...
There are more options.
 

Latest Threads

Latest Profile Posts

Add Film-like Visual Effects During Test-Play, Deploy Games with Electron | RPG Maker News #69

brain broken as soon as i figure out whats wrong with my game im taking a long nap
Hey guys anyone is interested in playing my game? Just PM me and I'll give you a Steam key! Here's my latest video! ->
cst.PNG
What would you assume this thing was/is?
1623528827049.png
Ah yes. Just the reference I was looking for to use for my portrait. Thanks Google.

Forum statistics

Threads
112,182
Messages
1,066,411
Members
145,775
Latest member
Nyakiryu
Top