How can I make status effects interact with each other?

Mihnea

C++ adept
Member
Joined
Sep 30, 2018
Messages
27
Reaction score
4
First Language
Romanian
Primarily Uses
RMMV
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?
 

BK-tdm

Manga Maker
Veteran
Joined
Jun 21, 2018
Messages
195
Reaction score
404
First Language
English
Primarily Uses
RMMV
you 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.
 

AdeptusUK

Veteran
Veteran
Joined
May 27, 2020
Messages
63
Reaction score
15
First Language
English
Primarily Uses
RMMV
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.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
554
Reaction score
229
First Language
english
Primarily Uses
RMMV
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)
 

Mihnea

C++ adept
Member
Joined
Sep 30, 2018
Messages
27
Reaction score
4
First Language
Romanian
Primarily Uses
RMMV
Thank you all! It worked!
 

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

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top