RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
script error!!! -translation- MY #&^(#&# SCRIPT HAS &#^@!*^ ERRORS!!! (j

0 Members and 1 Guest are viewing this topic.

pokeball APGOffline
**
Rep: +0/-0Level 82
hi i'm new to scripting and i wrote this script (bad intro?)
Code: [Select]
#===============================================================================
# ** 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
« Last Edit: November 16, 2009, 05:31:17 PM by grafikal »
Baaaa

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
code tags are there for a reason . .

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You need to add another end at the bottom to close the class

pokeball APGOffline
**
Rep: +0/-0Level 82
eh he.... woops....
Baaaa