Remove by Restriction on States

cekobico

Veteran
Veteran
Joined
May 8, 2015
Messages
343
Reaction score
139
First Language
Indonesian
Primarily Uses
I'm not sure if this should go on Action Sequence thread or here, but I'll try here first.


So, utilizing Yanfly's Action Sequence, I've made some of my skills to proc the damage twice (by using 2x Action Effect codeline).

However, if the said skills are also inflicting status effect, it will also proc the infliction twice. This is not a big deal on some states like Poison or Blind.

But for states with "Remove by Restriction" option checked, like Berserk/Confuse/Paralysis; apparently, inflicting them twice within the same attack also removes it.


Does this happened to anyone else? Is this the intended behavior, or is there a way to proc status infliction once if it is within the same skill no matter how many hit count is there.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,179
Reaction score
1,162
First Language
Spanish
Primarily Uses
RMVXA
inflicting them twice within the same attack also removes it.
I took advantage of that to create toggle states.
I believe it's caused by how the engine checks the states for removal.
IIRC, it first makes a list of states to remove, and then removes them at the end of the turn.
adding twice on top of an added state only registers the first action, queues for removal, and removes, and then adding twice again it ignores the removal part and only processes the adding.
(I think. Don't remember the code by memory. But yes, that's happening at the stock code)
 

JGreene

Veteran
Veteran
Joined
Oct 24, 2015
Messages
378
Reaction score
294
First Language
English
Primarily Uses
RMMV
I'm not at my computer right now, but I think that there may be a way for you to add the state to the target through the action sequence instead of having the skill inflict it as normal. At least that way you wouldn't have to worry about it being added and removed in the same action.
 

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

Latest Threads

Latest Profile Posts

Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.

Forum statistics

Threads
100,525
Messages
976,816
Members
132,080
Latest member
nwr
Top