im having a problem this error showed saying wrong number of arguments (5 for 2) here is my script
#===============================================================================
# Cut
#===============================================================================
def Kernel.pbCut
possiblemoves=[:CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH]
if $DEBUG ||
(HIDDENMOVESCOUNTBADGES ? $Trainer.numbadges>=BADGEFORCUT : $Trainer.badges[BADGEFORCUT])
for i in possiblemoves
move=getID(PBMoves,i)
movefinder=Kernel.pbCheckMove(move)
if $DEBUG || movefinder
Kernel.pbMessage(_INTL("This tree looks like it can be cut down!\1"))
if Kernel.pbConfirmMessage(_INTL("Would you like to cut it?"))
speciesname=!movefinder ? $Trainer.name : movefinder.name
Kernel.pbMessage(_INTL("{1} used {2}!",speciesname,PBMoves.getName(move)))
pbSEPlay("frlg_cut",100)
pbHiddenMoveAnimation(movefinder)
return true
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down.")) if i==possiblemoves[possiblemoves.length-1]
end
end
else
Kernel.pbMessage(_INTL("This tree looks like it can be cut down."))
end
return false
end
HiddenMoveHandlers::CanUseMove.add(:CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH,proc{|move,pkmn|
if !$DEBUG &&
!(HIDDENMOVESCOUNTBADGES ? $Trainer.numbadges>=BADGEFORCUT : $Trainer.badges[BADGEFORCUT])
Kernel.pbMessage(_INTL("Sorry, a new Badge is required."))
return false
end
facingEvent=$game_player.pbFacingEvent
if !facingEvent || facingEvent.name!="Tree"
Kernel.pbMessage(_INTL("Can't use that here."))
return false
end
return true
})
HiddenMoveHandlers::UseMove.add(:CUT,:SLASH,:LEAFBLADE,:NIGHTSLASH,proc{|move,pokemon|
if !pbHiddenMoveAnimation(pokemon)
Kernel.pbMessage(_INTL("{1} used {2}!",pokemon.name,PBMoves.getName(move)))
end
facingEvent=$game_player.pbFacingEvent
if facingEvent
facingEvent.erase
$PokemonMap.addErasedEvent(facingEvent.id)
end
return true
})
what the problem