Yanfly Action Sequences - Adding Multiple States with a single entry

Mirai Ko

Veteran
Veteran
Joined
Oct 16, 2012
Messages
64
Reaction score
15
First Language
English
 In my project I have my states separated into a group of positive states that can be removed, negative states that can be removed, and states that simply can't be removed at all.

I wanted to create a cure all type skill or item that removes all negative states that can be removed, and figured the best way might be through Yanfly's Action Sequence "remove state X:" command.

  I was hoping there was a way of doing a group entry, like "remove state 16...24:" or so.

As I currently have space set for about 100 negative states and was hoping I didn't have to add each number individually, nor would I have to come back each time I make a new state and add it to the list

for each cure all skill/item.
 

killerfer

Veteran
Veteran
Joined
Nov 4, 2015
Messages
198
Reaction score
50
First Language
Portuguese
If all your states are in a group of continuous ids (like you pointed 16....24), I think it would be best if you used the skill core lunatic mode. If you use the "Before Eval" notetag, you can create a variable that cures status of id number x and repeat the process how much times you need. Maybe something like this:

Ex: for (var i = 16; i < 24; ++i) {

     target.removeState(i);

}

I'm no master in lunatic mode, maybe someone may help us here if this doesn't works :p but I think this idea is easier for you. Just make sure you keep all your states together or you'll have to change the formula. Then you just have to change the number (in this case the "24") for the last state in your database you want to cure.
 

Mirai Ko

Veteran
Veteran
Joined
Oct 16, 2012
Messages
64
Reaction score
15
First Language
English
 That works.  Thank you.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,015
Members
137,563
Latest member
MinyakaAeon
Top