[code]SPEC_SKILLS = {1 => 15, 2 => 20, 13 => 11}
class Game_Battler
alias skill_can_use_special_later? skill_can_use?
def skill_can_use?(skill_id)
if self.is_a?(Game_Actor) and SPEC_SKILLS[skill_id] != nil
if $game_switches[SPEC_SKILLS[skill_id]]
return skill_can_use_special_later?(skill_id)
else
return false
end
else
return skill_can_use_special_later?(skill_id)
end
end
end
Use this little script. Ok, this is how you need to connect skill IDs and switch IDs:
SPEC_SKILLS = {SKILL_ID1 => SWITCH_ID1, SKILL_ID2 => SWITCH_ID2, SKILL_ID3 => SWITCH_ID3}
Turning on the switch will allow the normal use of the skill. If the switch is off, the skill is automatically unuseable, regardless if it was learned or not. It will be displayed greyed out like unuseable skills are usually are displayed. Note that the switch affect this skill of all characters.[/code]