There is a script I'm trying to use for my project, Szyu Item Class Restrictions, but I keep getting a "NoMethodError" crash.
Line 113 in the Szyu script is causing the crash.
Line 113 is this:
These are the surrounding lines.
When I take the script out, there are no crashes. So the script must be interacting with them in a way that's not intended.
Before anyone asks, I did start a new game to test this.
Line 113 in the Szyu script is causing the crash.
Line 113 is this:
Code:
BattleManager.actor.input.item.forbid_classes.include?(BattleManager.actor.input.subject.class_id) ||
These are the surrounding lines.
Code:
class Window_BattleActor < Window_BattleStatus
#--------------------------------------------------------------------------
# * Get Activation State of Selection Item
#--------------------------------------------------------------------------
def current_item_enabled?
return false if !BattleManager.actor.input.item.is_a?(RPG::UsableItem) ||
BattleManager.actor.input.item.forbid_classes.include?(BattleManager.actor.input.subject.class_id) ||
BattleManager.actor.input.item.forbid_actors.include?(BattleManager.actor.input.subject.id)
return true
end
end
Before anyone asks, I did start a new game to test this.