I'm using yanfly's passive states and I have some passive state that give certain effects when the user or the target is inflicted with a different state. For example, doing extra damage to a certain enemy type when a passive skill is equipped. (enemy types are determined by passive skills.) Another example is a skill that gives you buffs when you are inflicted with a certain state. How do I accomplish this in MV? Thanks.
Passive States that activate when another state is inflicted?
RPG Maker MV Supportthis would be accomplished by using lunatic mode. if you know how to do that, you can do most anything you want.
Ok, I'm starting to get interested in your game, your questions tell me you are doing something really unusual...
@Zerothedarklord I have no idea how to use lunatic mode. I know absolutely zero javascript and rely solely on people giving me the code for me to paste into my projects. Sorry. I might learn code in fall of 2021 when I start college, but we'll see. I would be very nice if you could give me the code I need for lunatic mode. Thanks.
@stramin Nothing too unusual. I have an ability system in my game in which when you defeat enemies you get SP to spend on both attacking and passive skills (arts and abilities) which you can then equip onto your character. However, a lot of the abilities go beyond just giving you a basic stat buff, as they often times require decently complex effects like being strong against certain types of enemies, getting buffs when inflicted with a certain type of status, ect. Since none of this is coded into MV at default, I pretty much have to rely solely on other people's javascript and plugins to accomplish this stuff. It's pretty complex, but nothing I can't handle with a little bit of help from the community. Only if my 2016 self could see me now!
@stramin Nothing too unusual. I have an ability system in my game in which when you defeat enemies you get SP to spend on both attacking and passive skills (arts and abilities) which you can then equip onto your character. However, a lot of the abilities go beyond just giving you a basic stat buff, as they often times require decently complex effects like being strong against certain types of enemies, getting buffs when inflicted with a certain type of status, ect. Since none of this is coded into MV at default, I pretty much have to rely solely on other people's javascript and plugins to accomplish this stuff. It's pretty complex, but nothing I can't handle with a little bit of help from the community. Only if my 2016 self could see me now!
@KrimsonKatt Zerothedarklord#8459
Shoot me an add on Discord, and we'll see what we can figure out. How's that sound?
Shoot me an add on Discord, and we'll see what we can figure out. How's that sound?
Never mind, someone else helped me find a solution in another thread. Here is the code I used.
Thanks to @JohnDoeNews for the help!
Code:
<Custom Passive Condition>
if value = user.isStateAffected(x);) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
Thanks to @JohnDoeNews for the help!
that's great, but learning how to do it for yourself would do wonders for you.
My offer stands regardless.
My offer stands regardless.
You're welcome, but to be honest, I copy pasted that code from a steam forum topic about the skill core... It was a wild guess they'd be the same. If we're going to give credits for a script call, then this one came from Caethyril 😛
I see you did some heavy lifting there, though. 😛
Original thread: https://forums.rpgmakerweb.com/threads/passive-states-that-activate-when-another-state-is-inflicted.130962/