This script allows you to set a range of percentages that could be randomly selected by the system at the beginning of the party selection stage.
That percentage will be speedily applied to the actual Skill's Cost ONLY IF either the actor or the enemy trooper contracts a disease, what this script calls the COST_STATE.
As long as that specific state remains, the hero or trooper will not spend the normal amount of SP unless they get really lucky or the effects of the state finally wear off.
This is what you need to configure:
Ruby:
module RandomSkill
COST_STATE = 24
# Some internal code here
end
复制代码
Once you've picked a state ID, go leave a note in the notebox. Here's an example:
Ruby:
<random skill cost -10..35>
复制代码
That means that it could end up being any number between -10 and 35, including both values.