Scope Change Rules
This plugin allows you to change an action’s scope dynamically based on a set of conditions that are defined for the item or skill.
For example, imagine you have a “Fire” spell that targets one enemy. However, when a special “Cast All” state is applied to the battler, the
spell’s scope is changed to “All Enemy”, allowing you to target everyone while the state is active.
A single skill or item can have multiple scope changing rules defined. The first rule that is met will be the scope that is used.
Plugin: download here (right-click, save as)
Download ths 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_ScopeChangeRules plugin.
Place this plugin below Hime Scope Core
Once it is in your list of plugins, turn the plugin on.
To assign scope changing rules, note-tag items or skills with
<scope change rule: SCOPE_TYPE> FORMULA </scope change rule>
Where the SCOPE_TYPE is the type of scope that you would like to change it to. See the instructions for Hime Scope Core for a list of scopes that you can use.
You can use the following formula variables:
a - the user of the skill s - game switches v - game variables
For example, let’s say you wanted a skill to change to target all enemies if state 14 was applied. You would write in the skill’s note
<scope change rule: all-enemy> a.isStateAffected(14) </scope change rule>
And whenever state 14 is applied, the scope of the action will change when you select the action.
For more formulas, consult the formula reference.