I'm trying to hide Skill type 1 when TP is below 25 and skill type 2 when TP is not full. I found my way to this post and followed Tsukihime's instructions there, but I keep getting an error when I put in the script. So in detail,
I've added hime's command manager,
In actors tags added <cmd: attack> <cmd: guard> and <cmd: skill_list>
then below command manager i've inserted a new script which i then put..
class Command_Skill < Game_Command
alias :conditional_skill_cmd_enabled? :enabled?
def enabled?(user)
return false if @ext == 1 && user.tp > (user.mtp * 0.25)
return false if @ext == 2 && user.tp != 100
conditional_skill_cmd_enabled?(user)
end
end
And then when I test the game I get this message:
TypeError occurred.
Superclass mismatch for class Command_Skill
I have very limited scripting knowledge so if anyone could help it would be greatly appreciated 🙂
I've added hime's command manager,
In actors tags added <cmd: attack> <cmd: guard> and <cmd: skill_list>
then below command manager i've inserted a new script which i then put..
class Command_Skill < Game_Command
alias :conditional_skill_cmd_enabled? :enabled?
def enabled?(user)
return false if @ext == 1 && user.tp > (user.mtp * 0.25)
return false if @ext == 2 && user.tp != 100
conditional_skill_cmd_enabled?(user)
end
end
And then when I test the game I get this message:
TypeError occurred.
Superclass mismatch for class Command_Skill
I have very limited scripting knowledge so if anyone could help it would be greatly appreciated 🙂