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
189
Reaction score
368
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
541
Reaction score
219
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 Posts

Latest Profile Posts

being able to transition music seamlessly is amazing. my main character's theme has lyrics and it goes from vocal version to istrumental when he leaves his room. and vice versa. and thanks to a plugin, the transition is seamless. I love it.
All of the auditions for our game are so good, I'm so glad I'm not in charge of choosing completely. lol I just can't with some of them. I listen to them on repeat. XD
Working on a Patch to integrate AlphaABS into random generated Dungeons. Was a bit tricky, but the outcome is a real Life Changer!!

Will release it the next days!
Been pretty busy... but I got a better headset for recording and listening today. Dad says that he'll consider taking me to Great Wolf Lodge for the first time once I finish summer classes (my final semester!) I'll be taking my plushie friends with me: Bendy, Lolbit, and Helen Henny. (I WUV PLUSHIES!)
SF_Monster3,4 added!

Forum statistics

Threads
105,651
Messages
1,015,304
Members
137,327
Latest member
Mezzy
Top