- 34
- Posts
- 8
- Years
- Where my house is
- Seen Sep 17, 2017
In the script section PokeBattle_Move Effects, i edited a few parts, and it gives me the same error message every time: Script 'PokeBattle_MoveEffects' line ____: (it's always the last line in the script) SyntaxError occurred. Of course, as I check back, this line only has one word all the time, and that is "end". This never happened to me before until I edited minor parts of the scripts in order to add new move and ability effects, not touching anywhere else. I am using the Gen 6 pack, so my last few lines look like this:
################################################################################
# Belch
################################################################################
class PokeBattle_Move_162 < PokeBattle_Move
def pbMoveFailed(attacker,opponent)
if !(attacker.effects[PBEffects::CanBelch])
@battle.pbDisplay(_INTL("But it failed!"))
return true
else
return false
end
end
end
The error message occurs as I am starting up the game.
Here is a screenshot for clarification:
################################################################################
# Belch
################################################################################
class PokeBattle_Move_162 < PokeBattle_Move
def pbMoveFailed(attacker,opponent)
if !(attacker.effects[PBEffects::CanBelch])
@battle.pbDisplay(_INTL("But it failed!"))
return true
else
return false
end
end
end
The error message occurs as I am starting up the game.
Here is a screenshot for clarification:
Last edited: