public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Remove State By Parameter

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Remove State By Parameter
  • Original author: WampThing
  • Original date: April 16, 2014
  • Source thread: https://forums.rpgmakerweb.com/threads/remove-state-by-parameter.26089/
  • Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSS3 Scripts (RMVX Ace) > RGSS3 Script Requests

Summary

Hi, I am working on trying to figure out how to remove a current state once a parameter hits a certain number (this case MP stat hits zero) during a battle.  Sorry if this is located elsewhere, i have done some searching on both google and these forums for a similar stance, but nothing has surfaced yet.  So i thought I would go ahead and ask.  Thanks for any and all assistance on this topic! Rundown: I have a weapon that when equiped it grants the weilder a new skill...

Archived First Post

Hi,

I am working on trying to figure out how to remove a current state once a parameter hits a certain number (this case MP stat hits zero) during a battle.  Sorry if this is located elsewhere, i have done some searching on both google and these forums for a similar stance, but nothing has surfaced yet.  So i thought I would go ahead and ask.  Thanks for any and all assistance on this topic!

Rundown:

I have a weapon that when equiped it grants the weilder a new skill for their class. 

When this skill is used during a battle, it activates a state that grants the user a new "skill type," additional "skill" moves in that type, while draining their MP each turn.

What I want is when the user's MP = 0 then remove the active said [state].

My Example:

Making a quick Fairy Tail game based on the anime.  I am going for Lucy's skill which is a summoning magic type ability.  The character would obtain a key which would be equiped allowing for her to "open a  gate/summon another character." After fatigue hits then she would send the character back.

My terms:

Character Skill Type: Celestial Gate

Protected download

Skill: "Summon Taurus" - Generates a state "Summon Taurus" which grants the new Skill Type "Taurus Gate" with Skills "Rampage, Axe Smash...." and Drains 10% Ex-Param "MRG" per turn.

Protected download

When activated during battle I am trying to achieve a way to obtain when MP=0 then Remove the "Taurus Gate" Skill Type thus removing all corresponding skills.

I also have another skill that works individually called "Close Gate" - This just removes States "Taurus Gate."

I tried going through and adding this formula to the individual skill, but I am not getting it to work properly and it would seem to only apply if the skill is actually used. (if a.mp=0; a.erase_state(31) ; end ; a.mat * 3) My result after i select and use the skill it sets my MP to zero and then removes the state as i wanted, but i dont want my mp to drop to zero after one use, just after X amount of turns.

I am not too familiar with switches, but i tried to play around with them, but couldn't seem to put together the proper terms so they acted during a battle phase.

I am really not familiar with scripting in rpg maker, but I feel like you should be able to write the conditional statement and refer to the state/skill as a notetag in some manner.

Here's to hoping I understood the rules and posted my first in the correct spot.

Thanks again for any help, it is much appreciated!

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download

Referenced Images / Attachments

summon taurus.PNG
summon taurus.PNG
state.PNG
state.PNG
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#rpg-maker-archive#rgss3-requests

Replies (0)

No replies yet.

0 replies 3 views

Log in to reply.

User Avatar