RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu

script error!!! -translation- MY #&^(#&# SCRIPT HAS &#^@!*^ ERRORS!!! (j

Started by APG, November 16, 2009, 11:37:00 AM

0 Members and 1 Guest are viewing this topic.

APG

hi i'm new to scripting and i wrote this script (bad intro?)
#===============================================================================
# ** Window_Party
#-------------------------------------------------------------------------------
# This window displays the members in the party and you can select the leader.
#===============================================================================

class Window_Party < Window_Selectable
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
def initialize
   super(0, 0, 480, 480)
   self.contents = Bitmap.new(width - 32, height - 32)
   refresh
   self.index = - 1
 end
 #-----------------------------------------------------------------------------
 # * Refresh
 #-----------------------------------------------------------------------------
 def refresh
   self.contents.clear
   @item_max = $game_party.actors.size
   for i in 0...$game_party.actors.size
     x = 64
     y = i * 116
     actor = $game_party.actors[i]
     draw_actor_graphic(actor, x - 40, y + 80)
     draw_actor_name(actor, x, y)
   end
 end

(lol notice how i formatted everything as the defaults did?)
well when I run the game, it says I have an error on [the last line]
the error is always on the last line no matter what
if you've got a solution, please post

my name is,
APG
Baaaa

Grafikal


modern algebra