Arctorius

Villager
Member
Joined
Oct 29, 2018
Messages
17
Reaction score
1
First Language
English
Primarily Uses
RMMV
Thanks for checking this thread!
Like the title says, Is there a way to add conditions to the status effects a character or enemy can acquire?

What I'm trying to make is, for example, you have a skill that applies "Poisoned", but if the target already has the "Poisoned" state it instead applies the "Badly Poisoned" state, and if the target has "Burned" state it instead applies the "Corroding" state.
It then removes "Poisoned" for both cases.

I think that answer is in scripting, but I have absolutely no idea how to do it.
Any advice helps and is appreciated.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
745
Reaction score
336
First Language
english
Primarily Uses
RMMV
this can be done as part of the damage formulas
if (b.isStateAffected(X)) b.addState(Y); formula
where X is the normal state and Y is the upgraded state
replace formula with your normal damage formula or 0 if that skill doent deal damage.

the only problem with this is that the upgraded state doesnt have an apply rate.
its either applied because the base state was there, or not applied because it wasnt poisond or just cant be effected by badly poisoned state.
it doesnt take into account any success or resist rates of the upgraded state aside from the full on state resist trait
 
  • Like
Reactions: Bex

Arctorius

Villager
Member
Joined
Oct 29, 2018
Messages
17
Reaction score
1
First Language
English
Primarily Uses
RMMV
this can be done as part of the damage formulas
if (b.isStateAffected(X)) b.addState(Y); formula
where X is the normal state and Y is the upgraded state
replace formula with your normal damage formula or 0 if that skill doent deal damage.

the only problem with this is that the upgraded state doesnt have an apply rate.
its either applied because the base state was there, or not applied because it wasnt poisond or just cant be effected by badly poisoned state.
it doesnt take into account any success or resist rates of the upgraded state aside from the full on state resist trait

Yeah, I tried it and is a bit finicky. I was thinking that another option was through battle events using YEP's base troop events plug-in and scripting all the adding and removal of states. I don't know anything about scripting though, so this is more of a hunch from my part.
 

Aesica

undefined
Veteran
Joined
May 12, 2018
Messages
1,799
Reaction score
1,708
First Language
English
Primarily Uses
RMMV

Latest Threads

Latest Posts

Latest Profile Posts

Chili: Evolved to taste spicy so no animal would eat them.

Humans: "Jokes on you ..."
I guess it becomes purely academic in less than four days but before then can anyone explain to me why the %^&*( animations in the MZ database don't have a 'Hue' slider??
Who here knows of the hidden laws of this multiverse? Such as the law of attraction
Exploding Fruits and Rasaks Pixelfarm Assets | RPG Maker News #108

So ghosts can go through walls and stuff, and depending their type (according to fantasy media) they can or can't interact with objects to a certain degree...

So why they don't always fall through floors? Do they always float and sometimes simulate walking? If things go through them how can they hear/see? And why sometimes they have clothing? Do clothes die as well?

Forum statistics

Threads
113,704
Messages
1,076,796
Members
147,728
Latest member
Alteria
Top