Need help with a script

Status
Not open for further replies.

aetheriusx

Warper
Member
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?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Is that the WHOLE script?  There isn't a line 9 in there.
 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
383
Reaction score
91
First Language
English
Primarily Uses
First, this line:

class class Game_Actor < Game_Battler

should be:

class Game_Actor < Game_Battler

That should clear the specific error you're getting.

Second, ditto what Shaz said.
 

aetheriusx

Warper
Member
Joined
Sep 25, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
That was exactly the problem I was having, I couldn't find line 9.

Thanks for the help, I'll give that a shot, and see if I can get it to work
 

aetheriusx

Warper
Member
Joined
Sep 25, 2015
Messages
3
Reaction score
0
First Language
English
Primarily Uses
Thanks for the help everyone, it works now, this thread can be closed, sorry for posting in the wrong section.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
If you would like your thread to be closed, Report your opening post (the Report button is bottom right, near the MultiQuote button) and ask for it to be closed.  The mod for this forum might miss your post but will see your Report.

Thanks.
 

Sharm

Pixel Tile Artist
Veteran
Joined
Nov 15, 2012
Messages
12,760
Reaction score
10,884
First Language
English
Primarily Uses
N/A
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top