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.
Download
Plugin: download here (right-click, save as)
Required
Installation
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.
Usage
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.
The FORMULA is a javascript formula that evaluates to true or false.
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.
Do you mind if I quote a couple of your articles as long as I provide credit and sources back to your site?
My blog is in the very same niche as yours and my visitors would definitely benefit from a lot of the information you present here.
Please let me know if this ok with you. Many thanks!
Have you ever considered about including a little bit
more than just your articles? I mean, what you say is fundamental and
everything. Nevertheless imagine if you added some great photos or videos to give your posts
more, “pop”! Your content is excellent but with images and video clips, this site could
undeniably be one of the very best in its niche.
Amazing blog!
Nice post. I learn something totally new and challenging on sites I stumbleupon every day.
It’s always useful to read through content from other writers and practice something from their sites.
This info is worth everyone’s attention. How can I find out more?
I was able to find good information from your content.
Thanks for sharing your info. I truly appreciate your efforts and I will
be waiting for your further post thank you once again.
Incredible quest there. What happened after?
Take care!
Good day! I could have sworn I’ve visited your
blog before but after going through some of the articles I realized it’s new to me.
Anyways, I’m definitely happy I stumbled upon it and I’ll be bookmarking it and
checking back regularly!
whoah this blog is wonderful i love reading your
posts. Stay up the good work! You know, lots
of individuals are searching round for this information, you could help them greatly.
Heya i am for the first time here. I found this board
and I find It truly useful & it helped me out much.
I hope to give something back and help others such as you aided me.
Can it makes the scope only target enemy with certain states?
Hi, is there a way to have it trigger all enemies if the state is applied to the enemy instead? I tried:
b.isStateAffected(14)
</scope change rule>
But it does not work. What would I have to change in order for it to check the state on the enemy instead?
How would I go making the scope change between single and all targets, with a press of a button. The skills I have are all single targets, and I want to make it where when I press say “shift” it goes from single to multiple targets. Then when I press shift again it goes back to single taeget.
Thanx, for any help you can give.
This plugin alone would not be suitable for what you would like to do.
This is meant to change the scope based on things like having a state applied, or having certain equips on the actor.
There may be other plugins that would allow you to change scope based on button presses.
Hi Hime,
is it possible to use your plugin to have a skill with scope “X random enemies” only affect each enemy once?
For example by adding a state with no further effect, that only lasts for one turn, but would dynamically prevent the enemy from being targeted a second time within the same skill use s soon as it is applied? If yes, what would I have to write as scope change rule?
scope change rule: ???
b.isStateAffected(XX)
/scope change rule
Thank you in advance & Have a great day
I don’t think it would be possible using the scope change rules. The way targeting works, it checks what the scope is, and then uses that scope to determine who the targets will be.
So for example, if the scope was X-random enemies, it would pick X random targets. The “random target” functionality is the one that can pick the same target multiple times.
You will need to change how the random target function works to accomplish what you would like to do.
What is the plugin you used for the gauge in the bottom right, i searched but didn’t found it.
It’s called “ATB Order Gauges”, but I haven’t released it yet
https://www.youtube.com/watch?v=zZkYR1kXJIs
OK, thanks i’ll wait for this one. 🙂
A lot of my stuff requires Yanfly’s scripts in the project I am working on. Is this plugin and its prerequisite compatible with YEP?
I cannot guarantee that they are compatible with all of yanfly’s plugins. You will have to see whether it works for you.