I'm getting a no method error in an addon I'm making to MrMo's ABS, and I have no idea why.
I added this method. It's basically just one of the methods in the script, but with a few lines taken out, the name changed, and an argument added for the skill value.
I then called this method:
But this is getting a no method error. I've tried moving them around in the script editor so one's above the other and vice versa. I've made sure the ABS is above them... But still, same error:
"Undefined method cast_skill_wyatt for MrMo_ABS:Class".
Anyone got any ideas here?
I added this method. It's basically just one of the methods in the script, but with a few lines taken out, the name changed, and an argument added for the skill value.
Code:
class MrMo_ABS
def cast_skill_wyatt(skill_id)
key = skill_id
if STATE_EFFECTS
for i in $game_party.actors[0].states
return if STUN_EFFECT.include?(i) or PARALAYZE_EFFECT.include?(i) or MUTE_EFFECT.include?(i)
end
id = @actor.skill_keys[key]
if RANGE_EXPLODE.has_key?(id)
return player_explode(id)
else
return player_skill(id)
end
end
end
end
I then called this method:
Code:
MrMo_ABS.cast_skill_wyatt(1) unless $game_party.actors[0].skill_keys[1] == nil
But this is getting a no method error. I've tried moving them around in the script editor so one's above the other and vice versa. I've made sure the ABS is above them... But still, same error:
"Undefined method cast_skill_wyatt for MrMo_ABS:Class".
Anyone got any ideas here?