r/PokemonRMXP • • 12h ago

Help Problematic move function

Post image

This function causes the game to crash, please help

0 Upvotes

4 comments sorted by

3

u/agamottos 11h ago

Did it show you an error log or anything specifyng the trace of what went wrong?

2

u/UsernameUnreal 11h ago

The error says Script " line e Syntax error occured.

184:MoveEffects_MultiHit:728: syntax error, unexpected end-of-input, expecting `end'

Line 184 is below the new function i made, so idk how to fix this

3

u/VestOfHolding 11h ago

Worth taking a screenshot instead of a photo next time.

"pbHealAmount" needs an "end" statement. I also have to wonder if inheriting from "Battle::Move::HitTwoToFiveTimes" would be the better option or not, but I don't remember off the top of my head.

2

u/UsernameUnreal 11h ago

Oh, it worked thank you. And yes, next time its gonna be a screenshot haha.