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
90
Reaction score
69
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
529
Reaction score
373
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,021
Reaction score
677
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
90
Reaction score
69
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 Posts

Latest Profile Posts

Just finished my first Slip into Ruby since last July! It'll be up and added to the main post tomorrow, along with a new Jump into Javascript.
to pass the time.pngTesting out making boxes and packs of items. These things are always fun to do.
Rural Japan Tiles, Giant Dragon Sprite, Paint Icons? & Game Spicy Pixel Fonts | RPG Maker News #31

just hopped into project recruitment... hoping to maybe find some artists to help with parallax maps and whatnot. I could do them myself, but I'm not really good at it so I'd prefer to stick to my strengths which is character art and SOME UI elements.
PRODUCTIVE DAY! I think I FINALLY completed all the items for part 1 of Fallen Feather, that includes the animations, the stats, the pricing, etc. for weapons, armors, key and consumables! all i need to be 100% done is write a few more descriptions (only 10 left out of the 40+ items) and to find some nice pants icons (dont ask lol).

Forum statistics

Threads
111,099
Messages
1,058,274
Members
144,303
Latest member
DarkGamerZ
Top