- Joined
- Sep 25, 2015
- Messages
- 3
- Reaction score
- 0
- First Language
- English
- Primarily Uses
So I was browsing around online for a script to give each class a separate attack skill when the attack command was used from the battle menu and i found this:
class class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Get Skill ID of Normal Attack
#--------------------------------------------------------------------------
def attack_skill_id
return 2 + @class_id
end
end
But whenever I start up the game I get the following error:
Script 'Class Specific Attacks' line 9: SyntaxError occurred.
unexpected '\n', expecting tCOLON2 or '[' or '.'
i'm probably missing something obvious, but i'm not great at scripting, any ideas?
class class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Get Skill ID of Normal Attack
#--------------------------------------------------------------------------
def attack_skill_id
return 2 + @class_id
end
end
But whenever I start up the game I get the following error:
Script 'Class Specific Attacks' line 9: SyntaxError occurred.
unexpected '\n', expecting tCOLON2 or '[' or '.'
i'm probably missing something obvious, but i'm not great at scripting, any ideas?


