Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Minkoff's Animated Battle System code problem

I don't know if I'm posting in the right section.  This is my first time using scripts and I'm completely lost...

I've put in all 4 parts for the system, at first I had them in the wrong spot so it wouldn't let me run the game.  But now I've got that figured out. : )

Next I get an error saying... "'Minkoff_Miscellaneous' line 205: NoMethodError Occured.
                                        Undefined method ` /' for nil:NilClass"

Now... I'm extremely new.  Is there something I need to do beside just copy and paste the code?  I read through the pdf... but it seemed to me that unless I wanted to use something beside 11 pose battlers, or wanted to customize the linup, then I should just leave it be at the default.  Which is just fine with me.  So what am I doing wrong?

Here's the script (The line that starts with "x_spacer =..."  is #205.  The one where it says it has an error)

Code:
#--------------------------------------------------------------------------
  # * Actor X Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    # Determine minimum horizontal space between battlers
    x_spacer = $game_system.form_wd / $game_system.max_member
    if self.index != nil
      case $game_system.formation
      when 0                                    # DIAGONAL PATTERN 1
        if $game_system.sv_angle == 1
          return self.index * -x_spacer + (($game_system.max_member+1)*x_spacer) #202        
        else
          return self.index * x_spacer + (640-(($game_system.max_member+1)*x_spacer))#450
        end          
      when 1                                    # DIAGONAL PATTERN 2   
        if $game_system.sv_angle == 1
          return self.index * x_spacer + x_spacer #64

HELP PLEASE!  :'(
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top