Jump to content
Rpg²S Forum
  • 0

Nessuna scritta nel gioco


Phrogg3r
 Share

Question

ho messo lo script per il bs Minkoff e non mi ha dato problemi. Ho chiuso RMXP e sonoa dnato a fare altro. AL mio ritorno volevo rimettermi a lavorare ma quando ho provato ad avviare il progetto è apparso il seguente errore:

 

????? 'Window_Command' ? 20 ??? type error ????????

no implicit conversion from nil to integer

 

Non riesco però a capire dov'è il problema. Non ho mai toccato quella calsse nello script editor. Vi posto di seguito il codice

 

 

#=============================================================
=================
# ■ Window_Command
#------------------------------------------------------------------------------
#  一般的なコマンド選択を行うウィンドウです。
#==============================================================================

class Window_Command < Window_Selectable
 #--------------------------------------------------------------------------
 # ● オブジェクト初期化
 #     width    : ウィンドウの幅
 #     commands : コマンド文字列の配列
 #--------------------------------------------------------------------------
 def initialize(width, commands)
   # コマンドの個数からウィンドウの高さを算出
   super(0, 0, width, commands.size * 32 + 32)
   @item_max = commands.size
   @commands = commands
   self.contents = Bitmap.new(width - 32, @item_max * 32)
   self.contents.font.name = $fontface
   self.contents.font.size = $fontsize
   refresh
   self.index = 0
 end
 #--------------------------------------------------------------------------
 # ● リフレッシュ
 #--------------------------------------------------------------------------
 def refresh
   self.contents.clear
   for i in 0...@item_max
     draw_item(i, normal_color)
   end
 end
 #--------------------------------------------------------------------------
 # ● 項目の描画
 #     index : 項目番号
 #     color : 文字色
 #--------------------------------------------------------------------------
 def draw_item(index, color)
   self.contents.font.color = color
   rect = Rect.new(4, 32 * index, self.contents.width - 8, 32)
   self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
   self.contents.draw_text(rect, @commands[index])
 end
 #--------------------------------------------------------------------------
 # ● 項目の無効化
 #     index : 項目番号
 #--------------------------------------------------------------------------
 def disable_item(index)
   draw_item(index, disabled_color)
 end
end

 

 

potete aiutarmi?

http://fc96.deviantart.com/fs34/f/2008/299/5/0/_rorschach__by_dadrian.gif

Non sono io rinchiuso qui dentro con voi. Siete voi rinchiusi qui dentro con me.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Fai una revisione totale dei tuoi scipt e vedi se in qualcuno risiede la classe Window_command e poi ci dici quali sno quegli script

Per qualsiasi motivo non aprite questo spoiler.

 

 

Ho detto di non aprirlo !

 

 

Se lo apri ancora esplode il mondo.

 

 

Aaaaaa è un vizio.

 

 

Contento? Il mondo è esploso, sono tutti morti

per colpa della tua curiosità .

 

 

Vuoi che ti venga anche il morbillo, la varicella e l'AIDS???

 

 

O bravo ora sei un malato terminale e nessuno

ti puo curare, sono tutti morti !

 

 

Se clicchi ancora una volta il PC esplode.

 

 

E dai smettila !!

 

Uff!! Hai cliccato tante volte che ho dovuto sostituirlo con un codebox.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

http://s8.postimg.org/yntv9nxld/Banner.png

http://img204.imageshack.us/img204/8039/sccontest3octpl3.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...