modify auto passive states

Status
Not open for further replies.

Charles2020

Veteran
Veteran
Joined
Feb 24, 2020
Messages
81
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hi guys

Does anyone know if there a way to modify auto passive states from Yanfly auto passive state plugin (http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP))

For example, I set passive state 1,2,3,4 at the beginning of the game but I want to change state 4 to 5 during gameplay via events or battle

Thanks
 

Ritter

Veteran
Veteran
Joined
Jan 17, 2017
Messages
64
Reaction score
30
First Language
English
Primarily Uses
RMMV
looks like you would want to use Custom Passive Conditions. Maybe set it to look for a switch you can turn on/off? Or the level of the character? if i knew more of the conditions you need fulfilled for the states i could assist further but the general idea is shown in the yanfly help. you would just need to edit the if statements to fit the conditions you require in your game.

<Custom Passive Condition>
if (user.hp / user.mhp <= 0.25) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>

if your needs can be filled simply with using a switch there is this option as well, when you want 1, 2, 3 ,4 to be active you can put this in your 4th state notetag (replace x with your switchid number)

<Passive Condition: Switch x OFF>

and in your 5th states notetag place

<Passive Condition: Switch x ON>

this would make is when this switch is off (by default) you have passive states 1, 2, 3, 4 but when the switch you set turns on then you will have passive states 1, 2, 3, 5.
 

Charles2020

Veteran
Veteran
Joined
Feb 24, 2020
Messages
81
Reaction score
2
First Language
English
Primarily Uses
RMMV
Thanks. The switch does the trick. But it did not change in the menu after turns on the switch, so I have to go to a new scene in order to change the states.

Are you there commands or script that process this scene after turns on the switch?
 

Ritter

Veteran
Veteran
Joined
Jan 17, 2017
Messages
64
Reaction score
30
First Language
English
Primarily Uses
RMMV
hmm maybe try a $gamePlayer.refresh() script call after you turn on the switch? I've never actually used this plugin but I can see in the help that $gamePlayer.refresh(); was updated as to refresh all members, maybe just try doing that script call after you flip the switch on or off? :mrsatan:
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA

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.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top