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.

problem with battle fix script

hi, i have a problem with the battle fix script, i dont know the exact name of the script anymore, but it does this:

http://img212.imageshack.us/img212/504/battlefixnx1.jpg[/IMG]

so when you have one player, the box behind the party is smaller, but when i run it, i have an error on line 181, saying "ni implicit conversion from 0 to intiger".

this is the piece of script where the error is:



PHP:
def initialize
   super(0, 320, 160 * $game_party.actors.size, 160)
   self.contents = Bitmap.new(width - 32, height - 32)
   self.contents.font.name = $fontface  # "Battle Status" window font
   self.contents.font.size = $fontsize <----  ERROR!!!!
   @level_up_flags = [false, false, false, false]
   if $game_party.actors.size == 3
     self.width = 480
     self.x = 80
   elsif $game_party.actors.size == 2
     self.width = 320
     self.x = 160
   elsif $game_party.actors.size == 1
     self.width = 160
     self.x = 240
   else
     self.width = 640
   end
   refresh
 end
end


when i erase line 181 i dont have an error but then there are no words in lmy battle system...


plz help ^_^
 
That's because the script was made for the illegal version of Rmxp. Just delete those two lines and you should be fine. (Unless if you want a specific font/font size to be used, then add them in.)
 
but when i delete those lines, then theres no text, as you see in the the screenshot, only my fontsize is smaller, but when i change that, i still ahev the error, but ill try it again first ;)

edit: ok ty, it worked, i already tought that was the key to solve it :P
 

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