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
367
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
540
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 Profile Posts

Once again working on a game I'm not sure I'm going to sell or even publish
That feel when you're awake past midnight and suddenly you're one year older :ninja:
I miss collaborations, but I don't know how to find someone to make face parts just to share them with others, and even though I don't like writing or music, I can't trust anyone with writing on my game because it has themes that are easy to mess up, and music needs a clear tone and scenes.
People donating to me for my upcoming birthday so I can pay my team a little. Such angels, I'm so happy. T uT I smile so much my face hurts. Good souls in this world.
Playing Ragnarok Online again is very nostalgic. The last time I played it was 20 years ago, when I was ten-twelve old.
My first mmorpg.^^

Forum statistics

Threads
105,571
Messages
1,014,723
Members
137,245
Latest member
dashstop
Top