Neon Black provides a passive skills script that allows you to create skills that provide constant buffs using states. The states themselves are not added to the actor; instead, it pulls the states’ features and applies them to the actor, creating a passive buff effect.
My Conditional States script allows you to create placeholder states whose sole purpose is to determine the proper state to add to a battler depending on a formula. Unfortunately, in order to use the conditions, a state must be explicitly added to the actor. This does not happen with the passive skills script.
With this add-on, you can create passive skills whose effects change depending on the state’s conditions.
Script: download here
- Neon Black’s Passive Skills
- Conditional States
Place this script below both required scripts and above main.
Plug and play. Refer to each script for instructions on how to set them up.
GIVE ME THE BUNCE
where is he?
As soon as I add a condition, it breaks
If I do :
it works, but if I do:
if a.atk > 10
I get a “SystemStackError” on line 113 of your Conditional States:
And I got them in order: Neon Black’s Passive Skills, your Conditional Skills and then this one
I have updated this script to correctly account for formulas that access parameters. Download the new version and replace the old script and it should work as expected: the passive state is added will automatically change depending on the formula.
Hey thanks for the fast reply! It seems to be working now ^^
Quite a neat add-on to promote synergy between the two scripts. A berserk passive skills that grants progressively more strength as your health is lower is much easier to design with this. Have 5 states that offers various ATK bonus, and applies them with different HP conditions. Good work!
That can also be accomplished using parameter bonuses, which allows you to specify exactly the atk bonus using a formula.