An open library of RPG Maker MV plugins, powered by the community.

PGMV - The Community-Driven Plugin Library for RPG Maker MV

MV plugins

HIME Placeholder States - HIME_PlaceholderStates.js

Plugin desc : v1.0 - allows you to create a state that may resolve to a different

License :
・Copyright: Retained
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
・Details: See Download Page / In-plugin documentation

Author : Hime

Website : https://himeworks.com/

Desc page : https://himeworks.com/2016/01/placeholder-states/

Download Page : https://raw.githubusercontent.com/munokura/HIME-MV-plugins-jp/master/HIME_PlaceholderStates.js

File name : HIME_PlaceholderStates.js

Help of plugin :

@title Placeholder States
@author Hime --> HimeWorks (http://himeworks.com)
@version 1.0
@date Jan 10, 2015
@filename HIME_PlaceholderStates.js
@url http://himeworks.com/2016/01/placeholder-states/

If you enjoy my work, consider supporting me on Patreon!

* https://www.patreon.com/himeworks

If you have any questions or concerns, you can contact me at any of
the following sites:

* Main Website: http://himeworks.com
* Facebook: https://www.facebook.com/himeworkscom/
* Twitter: https://twitter.com/HimeWorks
* Youtube: https://www.youtube.com/c/HimeWorks
* Tumblr: http://himeworks.tumblr.com/

@plugindesc v1.0 - allows you to create a state that may resolve to a different
state when it is added or removed.
@help 
== Description ==

Placeholder States are special states that use a formula to determine which
state will be added, when they are actually being added to a battler.

For example, let's say you had a state called "Freeze". When you first apply
the freeze state, the enemy will be frozen. However, if you applied the freeze
state to an enemy that is already frozen, they will shatter and die.

As another example, suppose you had a state called Poison. When you first
apply the state to a battler, Poison 1 will be added. When you add the Poison
state to a battler that already has Poison 1, it will be removed, and replaced
with Poison 2.

This allows you to create states that can be used on the same battler multiple
times, but potentially have different results.

== Terms of Use ==

- Free for use in non-commercial projects with credits
- Contact me for commercial use

== Change Log ==

1.0 - Jan 10, 2016
- initial release

== Usage ==

Note-tag states with

<placeholder state>
 FORMULA
</placeholder state>

Where the FORMULA is any javascript expression that returns a number, which
will be the ID of the state that is actually added or removed. You can use
any number of conditions.

The following formula variables are available

 a - "this" battler.
 v - game variables

スポンサードリンク

-MV plugins

Copyright© PGMV - The Community-Driven Plugin Library for RPG Maker MV , 2026 All Rights Reserved.