So for once, I've decided to take one of my existing plugins and change it in a way to be more flexible instead of having it be a growing list of explicitly written exceptions that could only ever be used in my main project.
The idea is this:
It allows for states with restrictions to be given conditions for their restriction to be ignored while keeping the state active. The prompt comes from the passives and effects of a few of the bosses/actors in my main project. Examples:
- allowing a passive to enable retaining the ability to act after being put to sleep, while keeping the benefits/penalties of sleeping instead of resisting the state
- Requiring being affected by at least 2 separate "Cannot Move" states in total to become unable to move
- Adding an HP% threshold to a state to determine if it should render a battler unable to move
- Preventing statuses like confusion/berserk from removing control of an actor while benefitting from their parameter increases
Use the following as a guide to set up the conditions. It goes within the state's notebox.
The value of the "bypass" variable determines if the state's restriction is considered. It defaults to being false and the restriction is ignored when its true.
Convenience variables include "user"/"target" for the battler the state is on, "stateId" for the current state's id, and "s"/"v" for the switch/variable data arrays
It works in my project with all the plugins I use as well as in a clean one. I'd imagine its fine for most setups. If anyone is interested in it, let me know if it causes any issues or oddities. Ive tested it for a bit within my "standard usage", but im sure someone else may be able to get it to set their game on fire.
actual plugin description comes soon:tm:
The idea is this:
It allows for states with restrictions to be given conditions for their restriction to be ignored while keeping the state active. The prompt comes from the passives and effects of a few of the bosses/actors in my main project. Examples:
- allowing a passive to enable retaining the ability to act after being put to sleep, while keeping the benefits/penalties of sleeping instead of resisting the state
- Requiring being affected by at least 2 separate "Cannot Move" states in total to become unable to move
- Adding an HP% threshold to a state to determine if it should render a battler unable to move
- Preventing statuses like confusion/berserk from removing control of an actor while benefitting from their parameter increases
Use the following as a guide to set up the conditions. It goes within the state's notebox.
Code:
<Restriction Bypass Condition>
bypass = some js condition goes here;
</Restriction Bypass Condition>
Convenience variables include "user"/"target" for the battler the state is on, "stateId" for the current state's id, and "s"/"v" for the switch/variable data arrays
It works in my project with all the plugins I use as well as in a clean one. I'd imagine its fine for most setups. If anyone is interested in it, let me know if it causes any issues or oddities. Ive tested it for a bit within my "standard usage", but im sure someone else may be able to get it to set their game on fire.
actual plugin description comes soon:tm: