Toggle-able States

Do you have a state that can be removed when you apply the same state?

For example, you use a state that adds a poison state, but when you apply the same poison state, it will cancel out the existing poison state.

This plugin allows you to create toggle-able states. When the state is added, one of two things can happen

1. If the state does not exist, then it will be added
2. If the state exists, then it will be removed

Download

Plugin: download here (right-click and save-as)

Related Plugins

Installation

Download the plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_ToggleableStates plugin.

Once it is in your list of plugins, turn the plugin on.

Usage

toggleableStates2

To specify that a state can be toggled, in your database go to the states tab, find the state you want, and then write in its note-box

  <toggleable state>

You may also like...

40 Responses

  1. xoDeathy says:

    Hey I’m having a bit of trouble. I have installed the program as per the instructions, and used it as instructions state, but whenever I reapply the state (using a skill exactly like your toggle skill) the effects aren’t removed. I tried disabling other plugins thinking they were the cause but to still no avail.

  2. Akvo says:

    It appears that this does not work out of battle.

    • Hime says:

      The problem with outside of battle is that by default you cannot use a skill that adds a state to an actor if the actor already has that state.
      However, because this is a “toggle-able” state, you should be allowed to add them.

      Therefore I would consider this a bug in the plugin, and have updated it to have those skills work outside of battle as expected.

  3. Jean-Philippe Rioux-Bernier says:

    I really love all your work. and I have a suggestion of something that could be nice.
    Like if I use weak poison on actor he poisonned and after if I reuse the same skill , to change the weak poison to strong poison. and he already had strong poison , something like weak poison not poisonning ( since he got a higher tier on himself) or just refresh duration
    thanks alot

Leave a Reply to Hime Cancel reply

Your email address will not be published. Required fields are marked *