Is there a plugin that can make togglable battle skills? ie) You turn it on, and it does it's effect automatically every turn until you turn it off by selecting it again. Is there something that allows you to implement skill like that?
Script to make toggle skills?
● ARCHIVED · READ-ONLY
-
-
Depending on what effect you want, you don't really need a plugin for this.Is there a plugin that can make togglable battle skills? ie) You turn it on, and it does it's effect automatically every turn until you turn it off by selecting it again. Is there something that allows you to implement skill like that?
1. Make the character learn the "toggled off" part of the skill. We'll say this skill has skill ID 10
2. Make the "toggled on" part of the skill in the database. Give it skill ID 11 for example.
3. Make the effect of skill id 10 add the state that does whatever you want it to do each turn. It should also learn the user skill id 11 when used. At the formula box of skill id 10, also add this at the start (before your actual damage formula if you have one): a.forgetSkill(10);
4. Make the effect of skill id 11 so that the user learns skill id 10. Add this to start of skill 11's formula box: a.forgetSkill(11);. Also make this skill remove any effect you added with skill 10
Now you have 1 skill when it is toggled on and 1 skill when the effect is toggled off. When the skill is toggled on, the user will learn the skill to toggle the effect on and vice versa. -
that can easily be done with states and the damage formula.
make a skill that checks if a user has a state in the damage formula and add the state if not, remove it if yes.