- Joined
- Apr 19, 2018
- Messages
- 179
- Reaction score
- 213
- First Language
- English
- Primarily Uses
- RMMV
I was wondering if someone could help me implement a system in which status ailment-cleansing skills remove a set number of ailments, and they normally prioritize removing the ailment(s) which currently have the most turns remaining in their duration. I’m using Yanfly’s State Categories to identify “Ailment” states, so buffs and other non-ailment states shouldn’t cause any issues.
So for example, let’s say I Poison a target for 3 turns, and then Silence the same target for 2 turns. A skill which removes 1 status ailment would remove the Poison ailment. If I had used the Poison skill 2 turns before using the Silence skill (so the durations were 1 turn for Poison and 2 turns for Silence), then the cleansing skill would remove Silence instead.
If two or more ailments had the same number of turns remaining, it would be fine for the system to default to removing them in order of their State ID.
How could I go about something like this? Thanks!
So for example, let’s say I Poison a target for 3 turns, and then Silence the same target for 2 turns. A skill which removes 1 status ailment would remove the Poison ailment. If I had used the Poison skill 2 turns before using the Silence skill (so the durations were 1 turn for Poison and 2 turns for Silence), then the cleansing skill would remove Silence instead.
If two or more ailments had the same number of turns remaining, it would be fine for the system to default to removing them in order of their State ID.
How could I go about something like this? Thanks!

