Elemental Damage Removing Status Effects?

Flashlight237

Villager
Member
Joined
Nov 13, 2015
Messages
13
Reaction score
2
First Language
English
Primarily Uses
Hey there. So... Let's say a foe is frozen. If I wanna use Fire against the frozen foe and the fire hits, the foe should thaw out. How do I make a certain element remove a status effect (ex. fire-elemental moves removing the Frozen status effect)?
 

Shiro-chan

Friendly Neighbourhood Neppy Maid
Veteran
Joined
Aug 7, 2018
Messages
151
Reaction score
42
First Language
German
Primarily Uses
RMVXA
There are multiple ways for this, although having it *always* happen based on the element itself would probably require a script.

An alternative approach is with a targeting mechanic:
-define a new status called "Targeted" that does nothing and lasts for 1 turn only
-have your fire skills apply this status with a chance of 100% (ideally nothing should resist it)
-run a Common Event in the attack after the targeted status is applied
-in the Common Event, run a check for each Index (1-8) which goes:
IF (enemy index #) is affected by status Targeted THEN
IF (same enemy) is affected by status Frozen THEN
remove status Frozen from (enemy)

At least that's how I would do it.
 

Flashlight237

Villager
Member
Joined
Nov 13, 2015
Messages
13
Reaction score
2
First Language
English
Primarily Uses
There are multiple ways for this, although having it *always* happen based on the element itself would probably require a script.
Yeah, that was what I was trying to go for. I do think the "Targeted" mechanic will probably help with a variety of things if need be, however.
 
Last edited:

hosercanadian

Veteran
Veteran
Joined
Jul 18, 2016
Messages
36
Reaction score
10
First Language
English
Primarily Uses
I added the conditions right in the skill. In one of my projects I have a state where they are covered in oil and take more fire damage, but it is subsequently removed. For each fire attack, I check for the condition and remove it.

I use Yanfly’s action sequence so my note section is used instead of common events.
 

Flashlight237

Villager
Member
Joined
Nov 13, 2015
Messages
13
Reaction score
2
First Language
English
Primarily Uses
I added the conditions right in the skill. In one of my projects I have a state where they are covered in oil and take more fire damage, but it is subsequently removed. For each fire attack, I check for the condition and remove it.

I use Yanfly’s action sequence so my note section is used instead of common events.
I don't think that'll work; I just looked up "yanfly action sequence" and got an MV plugin. I don't think those are compatible with VX Ace, which is the engine I'm using (and the one whose board I posted in).
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,672
Reaction score
566
First Language
English
Primarily Uses
RMVXA
Perhaps Tsukihime's Conditional States would work for you
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
603
First Language
English
Primarily Uses
RMMV
If you haven't nailed this down yet, you could also just if/then statement in the damage formula box for the fire skill. If the frozen state exists, remove it from the target; do DMG; add fire state; else do DMG and add fire state.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
I think the damage formula route is the simplest.
if b.state?(x);b.remove_state(x); end; b.add_state(y); damage here

The suggestion "do DMG and add fire state" is correct, but in the wrong order. You have to end with damage, not with adding a state.

To make the damage formula shorter, you could just add state (y) in the Effects box as normal.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,017
Messages
1,018,356
Members
137,802
Latest member
rencarbali
Top