- 60
- Posts
- 6
- Years
- The Ozone Layer
- Seen Feb 9, 2023
I am learning to code for my game and in the process, had added a bit of code to my script, but on removing it, due to it not working and my deciding to work on adding new Pokemon to the game, it has begun to tell me that it is finding a syntax error on the move effects script.
################################################################################
# Fails unless user has consumed a berry at some point. (Belch)
################################################################################
class PokeBattle_Move_158 < PokeBattle_Move
def pbMoveFailed(attacker,opponent)
return !attacker.pokemon || !attacker.pokemon.belch
end
end
################################################################################
#Note:
################################################################################
Ignore the note thing, I accidentally deleted it and just put it there as a stand in.
now if I remove the last comment, the syntax error just appears on the final line.
I have not got the skill to fix it and have yet to find any article that has addressed a problem like this. Could anyone help me fix this?
################################################################################
# Fails unless user has consumed a berry at some point. (Belch)
################################################################################
class PokeBattle_Move_158 < PokeBattle_Move
def pbMoveFailed(attacker,opponent)
return !attacker.pokemon || !attacker.pokemon.belch
end
end
################################################################################
#Note:
################################################################################
Ignore the note thing, I accidentally deleted it and just put it there as a stand in.
now if I remove the last comment, the syntax error just appears on the final line.
I have not got the skill to fix it and have yet to find any article that has addressed a problem like this. Could anyone help me fix this?