How to increase a parameter when state expires

Gargoyle77

Veteran
Veteran
Joined
Dec 4, 2017
Messages
67
Reaction score
7
First Language
English
Primarily Uses
RMMV
Hello, everyone! Well, what I want to do is basically what the title says. I need a way to increase a certain parameter by x points when certain state expires. Thanks for reading!
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,064
Reaction score
10,364
First Language
Czech
Primarily Uses
RMMV
You'd want to use Yanfly's buffs and states core with a remove effect:
user._paramPlus[paramIndex, where 0 is max HP and 7 is luck - you can see the params inside Database->classes] += x;
 
Last edited by a moderator:

Wavelength

Edge of Eternity
Global Mod
Joined
Jul 22, 2014
Messages
4,973
Reaction score
4,154
First Language
English
Primarily Uses
RMVXA
@Poryg's solution is good. Put that line inside a <Custom Remove Effect> notetag once you've installed the Buffs & States Core.

I modified the color of the "comment" to make the code line itself more clear (hope you don't mind, @Poryg! Change it back if you hate it).
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,064
Reaction score
10,364
First Language
Czech
Primarily Uses
RMMV
No stress, it looks pretty good in the dark theme. I think I might type using orange as my default color! :D
 

Gargoyle77

Veteran
Veteran
Joined
Dec 4, 2017
Messages
67
Reaction score
7
First Language
English
Primarily Uses
RMMV
You'd want to use Yanfly's buffs and states core with a remove effect:
user._paramPlus[paramIndex, where 0 is max HP and 7 is luck - you can see the params inside Database->classes] += x;
@Poryg's solution is good. Put that line inside a <Custom Remove Effect> notetag once you've installed the Buffs & States Core.

I modified the color of the "comment" to make the code line itself more clear (hope you don't mind, @Poryg! Change it back if you hate it).
Thanks. This worked perfectly!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Hi, there.
I'm Creta Park, as Software engineer and Indie game developer.

Profile : creft.me/cretapark
GitHub : github.com/creta5164
Blog : creta5164.tumblr.com


My stuff

Who shares/sells their scripts/plugins on itch.io? Can I pick your brain?
If you ever need fantasy names and you're bored, make a fictional alphabet. Switch around the letters and see what you get :p
I JUST GOT PROMOTED TO 9TH GRADE BOIS!

Forum statistics

Threads
98,169
Messages
949,935
Members
129,456
Latest member
xxvincent93
Top