Couple questions on stats.

I've been trying to re-arrange how they're displayed within the status screen, but I can't figure out how they're lined up in window_status.. Mind you I don't understand any of it 😛

Also is there a way to change how the stats behave? For instance ATK raises maxhp, and maxhp raises atk?
How they line up in the screen and how they behave are two completely different things. What are you trying to achieve? Why would you want to make ATK raise maxhp and vice versa? Why can't you just do that via the parameter curves on the class?
How they line up in the screen and how they behave are two completely different things. What are you trying to achieve? Why would you want to make ATK raise maxhp and vice versa? Why can't you just do that via the parameter curves on the class?
Well I'd like to combine a couple of them, while making others useless (relatively speaking.. used in formulas per say) That said I have found a temporary work around for how they behave just now actually.

Now I'm more concerned about how they're listed (which order their listed, specifically)
Now I'm more concerned about how they're listed (which order their listed, specifically)
It depends on which ones you want to rearrange - but in a limited way that is possible even without scripts...
ATK, MAT, DEF and MDF have absolutely no function outside the damage formula. That means as long as you're consistent with their use, you can give them any name and any function in your custom damage formula. If you replace the default damage formula in all skills, you can even switch function of ATK and DEF and then rename them in the terms tab of the database.


The other parameters unfortunately have special functions in the engine - to switch those you need to rewrite the scripts for the status- and perhaps battlescreens.
It depends on which ones you want to rearrange - but in a limited way that is possible even without scripts...

ATK, MAT, DEF and MDF have absolutely no function outside the damage formula. That means as long as you're consistent with their use, you can give them any name and any function in your custom damage formula. If you replace the default damage formula in all skills, you can even switch function of ATK and DEF and then rename them in the terms tab of the database.

The other parameters unfortunately have special functions in the engine - to switch those you need to rewrite the scripts for the status- and perhaps battlescreens.
So essentially the best way to do this is just change their names in the order I want and keep track. Changing the order of appearance in the status screen is too difficult? 
No, it's quite easy to just change the order of appearance.


Window_Status, line 95 has this:

6.times {|i| draw_actor_param(@actor, x, y + line_height * i, i + 2) }That draws parameters 2-7 (ATK, DEF, MAT, MDF, AGI, LUK) in that order
If you want to draw them in reverse order, say, it would be 7, 6, 5, 4, 3, 2 - you could do this instead:

6.times {|i| draw_actor_param(@actor, x, y + line_height * i, [7, 6, 5, 4, 3, 2]) }Just put numbers into that array according to the order you want to draw them. From the help file:
0: Maximum hit points


1: Maximum magic points


2: Attack power


3: Defense power


4: Magic attack power


5: Magic defense power


6: Agility


7: Luck
If you only want to draw 4 of them, change 6.times to 4.times and make sure your array only has 4 numbers. Drawing MORE would be an issue, because the window is only large enough to hold 6.
What would I do without you Shaz??

You can close this kind sir.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


(ps, I'm not a 'sir' 😉 )

Original thread: https://forums.rpgmakerweb.com/threads/couple-questions-on-stats.16951/