So what I'm looking to do is have 2 statuses that interact with each other. In my case I want to have a status named "open wound". I'd like that in the case the player has that effect and is also poisoned, the poison to deal significantly more damage than it normally would. Is there any way to do this? If not, are there any plugins that can allow me to do this?
How can I make status effects interact with each other?
RPG Maker MV Supportyou could have 2 poison states, named equally but one does the extra damage, then roll an IsStateAffected on the damage formula which would check if the wounded state is present, you would need to manually roll the % and the status application inside the formula for both cases (extra damage and normal poison).
its lengthy formula-wise but no plugins are needed and can be tweaked at your leisure.
its lengthy formula-wise but no plugins are needed and can be tweaked at your leisure.
I'd be tempted to pull all the state damage out to a common event that is called on each state. Perfectly valid solution above, but if you want open wound to interact with poison AND bleed AND I dunno, on fire or whatever then you're going to need lots of states and damage formulas - really depends what you need. With a common event you'd only need the one state for each type as well. You'd probably need some js knowledge though to grab the actor ID at the relevant time.
damage formula
b.isStateAffected(X) ? b.addState(Y);
X is poison state. Y is the + state
just need ask yourself "these stacking states? or does the upgraded version overwrite the X version of the state?" (Y state trait, resist state X)
b.isStateAffected(X) ? b.addState(Y);
X is poison state. Y is the + state
just need ask yourself "these stacking states? or does the upgraded version overwrite the X version of the state?" (Y state trait, resist state X)
Thank you all! It worked!
Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-status-effects-interact-with-each-other.128932/