RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RMVXA] Can I keep stat totals when changing classes?

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 57
RMRK Junior
Okay, I understand how to change classes in RMVXA, the real question is whether or not I can make it so that when changing classes, the stat values for characters involved stays the same or go up depending on the parameters? The best example I can give to illustrate this point is that in the course of the game, a character goes from one class to another and since I don't know the level of the character or its guaranteed value in each of the parameters, I can't just put in the specific value. What I don't want is to penalize the player for grinding and have them grind more to make up the sudden change in power.

Think of what I'm trying is similar to a class advancement like in Fire Emblem. When advancing classes, stats either decrease by a tiny bit or get boosted up.

I don't know if I'm going to have to create a ruby script for this or just an event.

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
This can be done through eventing, if I understand you properly. What you have to do is store the actor's stats in variables before switching class, then immediately after switching class, use the Change Parameter command to set the parameters to 0, then to change the actor's stats to what they were before the switch by increasing them, because for some stupid reason you can only increase and decrease parameters.
I'll use MaxHP as an example; you'd have to do this for each of the stats (Level, Exp, MaxHP, MaxMP, HP, MP, Attack, Defense, Magic, Magic Defense, Agility and Luck).
Code: [Select]
@>Variable Operation: [0001:Storage1] = [Erik]'s Maximum HP # Do this for each stat, each with their own storage variable.
@>Change Class: [Erik], [Monk] # The class changing.
@>Change Parameter: [Erik], Maximum HP - 9999 # Do this for each stat, resetting the parameter to 0.
@>Change Parameter: [Erik], Maximum HP + Variable [0001:Storage1] # Do this for each stat, adding the old parameter to the new one via the corresponding variable.
it's like a metaphor or something i don't know

*
Rep:
Level 82
MaxHP can't be set to 0; it's minimum is 1. So you'll have to be sure to subtract that extra one from the value of the the previous HP stored in the variable too account for this. Otherwise, changing job will have the effect of increasing HP by 1 each time. Obviously not a desired effect, and it has the potential to be abused.

I'm fairly sure all of the other stats can be set to 0, but since I don't have VXA on the laptop I can't check the scripts for this.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
MaxHP can't be set to 0; it's minimum is 1. So you'll have to be sure to subtract that extra one from the value of the the previous HP stored in the variable too account for this. Otherwise, changing job will have the effect of increasing HP by 1 each time. Obviously not a desired effect, and it has the potential to be abused.
Also that.
it's like a metaphor or something i don't know

*
Rep: +0/-0Level 57
RMRK Junior
Thanks everyone. Also, now I'm wondering how to ensure that the stats increase after the class change in a way to not make the stats go down as well.

For example, say I want a character's attack/strength at level 100 to be 100 and I set the level 1 attack to 0 and the value from the class change is 50. I think what I may want to do is use a conditional branch to compare the character's attack/Strength value to the current position on the slope and if the current value is higher than the projected amount for the class, to increase the stat by a little amount so that over time, the two will catch up.

I could be over-complicating things though. What do you guys think?