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
Plugin: download here (right-click and save-as)
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.
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
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.
Try in this test project and see if it works. If it doesn’t work, send the demo to me.
Ahhhhh.. It seems I forgot the “l” in toggle when writing toggleable states.. thanks for the quick response though
Yes, typos can be difficult to catch.
There isn’t much I could do on my end to “warn” users that they may have typos unfortunately.
It appears that this does not work out of battle.
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.
Thank you very much!
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
Great idea. I think I cane come up with a solution that allows you to “upgrade” a state.