Jump to content
Rpg²S Forum
  • 0

Help Enter Hero Name


iFrIt
 Share

Question

Mi sono appena iscritto ho visto ke ci sapete fare :D

credo ke posterò un pò di domande in questi giorni.. inizio con questa

dunque:

Io faccio un evento per inserire il nome del mio protagonista ovvero metto Enter Hero Name (se avete rpgxp in inglese), però la schermata ke mi compare per inserire il nome compare la finestra ma è vuota! insomma non si vedono le lettere e i vari comandi.. l'unica cosa che si può fare è invio (anche quello invisibile) helpp :chirol_gurug:

Chi di fiamma ferisce.. Di fiamma perisce! http://img503.imageshack.us/img503/9098/arconteoscurotp2.gif Abbraccia il lato oscuro della tua semplice esistenza.. Elimina i tuoi avversari.. http://img503.imageshack.us/img503/9840/sniperou7.gifhttp://img501.imageshack.us/img501/8754/img40e73c5e3824egy2.gif Non lasciare traccie.. diventa uno e nessuno..
Io uccido..
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Per questo motivo c'è uno script adatto...controlla e vedi un po se lo trovi!!!

Targhette
http://www.rpg2s.net/awards/mostpolite2.jpghttp://www.rpg2s.net/awards/mostpresent1.jpghttp://i51.tinypic.com/2mfnpt2.png

 

 

http://www.rpg2s.net/dax_games/r2s_regali5.png

Link to comment
Share on other sites

  • 0
e come si chiama? sto cercando ma nn lo trovo :P
Chi di fiamma ferisce.. Di fiamma perisce! http://img503.imageshack.us/img503/9098/arconteoscurotp2.gif Abbraccia il lato oscuro della tua semplice esistenza.. Elimina i tuoi avversari.. http://img503.imageshack.us/img503/9840/sniperou7.gifhttp://img501.imageshack.us/img501/8754/img40e73c5e3824egy2.gif Non lasciare traccie.. diventa uno e nessuno..
Io uccido..
Link to comment
Share on other sites

  • 0
Dovrebbe trovarsi nel vecchio forum di D&R,ma nn so se si potrebbe prendere,prova a cercare là! Poi nn so se si trova anke qui...

Vuoi imparare una nuova sconvolgente lingua????


http://it.youtube.com/watch?v=eMbM09aLMq4


Progetti in corso:N-U-L-L-A! (nel senso che non ho niente da progettare,perchè non ho idee XDDD)

Link to comment
Share on other sites

  • 0

Metti questo al posto di window name edit

#==============================================================================
# ■ Window_NameEdit
#------------------------------------------------------------------------------
#  名前入力画面で、名前を編集するウィンドウです。
#==============================================================================

class Window_NameEdit < Window_Base
 #--------------------------------------------------------------------------
 # ● 公開インスタンス変数
 #--------------------------------------------------------------------------
 attr_reader   :name					 # 名前
 attr_reader   :index					# カーソル位置
 #--------------------------------------------------------------------------
 # ● オブジェクト初期化
 #	 actor	: アクター
 #	 max_char : 最大文字数
 #--------------------------------------------------------------------------
 def initialize(actor, max_char)
super(0, 0, 640, 128)
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = $fontface
self.contents.font.size = $fontsize
@actor = actor
@name = actor.name
@max_char = max_char
# 名前を最大文字数以内に収める
name_array = @name.split(//)[0...@max_char]
@name = ""
for i in 0...name_array.size
  @name += name_array[i]
end
@default_name = @name
@index = name_array.size
refresh
update_cursor_rect
 end
 #--------------------------------------------------------------------------
 # ● デフォルトの名前に戻す
 #--------------------------------------------------------------------------
 def restore_default
@name = @default_name
@index = @name.split(//).size
refresh
update_cursor_rect
 end
 #--------------------------------------------------------------------------
 # ● 文字の追加
 #	 character : 追加する文字
 #--------------------------------------------------------------------------
 def add(character)
if @index < @max_char and character != ""
  @name += character
  @index += 1
  refresh
  update_cursor_rect
end
 end
 #--------------------------------------------------------------------------
 # ● 文字の削除
 #--------------------------------------------------------------------------
 def back
if @index > 0
  # 一字削除
  name_array = @name.split(//)
  @name = ""
  for i in 0...name_array.size-1
	@name += name_array[i]
  end
  @index -= 1
  refresh
  update_cursor_rect
end
 end
 #--------------------------------------------------------------------------
 # ● リフレッシュ
 #--------------------------------------------------------------------------
 def refresh
self.contents.clear
# 名前を描画
name_array = @name.split(//)
for i in 0...@max_char
  c = name_array[i]
  if c == nil
	c = "_"
  end
  x = 320 - @max_char * 14 + i * 28
  self.contents.draw_text(x, 32, 28, 32, c, 1)
end
# グラフィックを描画
draw_actor_graphic(@actor, 320 - @max_char * 14 - 40, 80)
 end
 #--------------------------------------------------------------------------
 # ● カーソルの矩形更新
 #--------------------------------------------------------------------------
 def update_cursor_rect
x = 320 - @max_char * 14 + @index * 28
self.cursor_rect.set(x, 32, 28, 32)
 end
 #--------------------------------------------------------------------------
 # ● フレーム更新
 #--------------------------------------------------------------------------
 def update
super
update_cursor_rect
 end
end

E questo al posto di window name input

#==============================================================================
# ■ Window_NameInput
#------------------------------------------------------------------------------
#  名前入力画面で、文字を選択するウィンドウです。
#==============================================================================
#   Character name fix by Minkoff (Minkoff@gmail.com)
#==============================================================================

class Window_NameInput < Window_Base
CHARACTER_TABLE =
[
"1","2","3","4","5",
"" ,"" ,"" ,"" ,"" ,
"A","B","C","D","E",
"F","G","H","I","J",
"K","L","M","N","O",
"P","Q","R","S","T",
"U","V","W","X","Y",
"Z","" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"6","7","8","9","0",
"" ,"" ,"" ,"" ,"" ,
"a","b","c","d","e",
"f","g","h","i","j",
"k","l","m","n","o",
"p","q","r","s","t",
"u","v","w","x","y",
"z","" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"+","-","×","÷","=",
"" ,"" ,"" ,"" ,"" ,
"!","@","#","$","%",
"^","&","*","(",")",
"?","♂","♀","♪","♫",
"☼","♠","♣","♥","♦",
"←" ,"↑" ,"→" ,"↓" ,"☻" ,
"☺","" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"", "" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"", "" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"", "" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
"" ,"", "" ,"" ,"" ,
"" ,"" ,"" ,"" ,"" ,
]
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
super(0, 128, 640, 352)
self.contents = Bitmap.new(width - 32, height - 32)
@index = 0
refresh
update_cursor_rect
end
#--------------------------------------------------------------------------
# ● 文字の取得
#--------------------------------------------------------------------------
def character
return CHARACTER_TABLE[@index]
end
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
def refresh
self.contents.font.name = "Arial"
for i in 0..179
  x = 4 + i / 5 / 9 * 152 + i % 5 * 28
  y = i / 5 % 9 * 32
  self.contents.draw_text(x, y, 28, 32, CHARACTER_TABLE[i], 1)
end
self.contents.draw_text(544, 9 * 32, 64, 32, "Done", 1)
end
#--------------------------------------------------------------------------
# ● カーソルの矩形更新
#--------------------------------------------------------------------------
def update_cursor_rect
# カーソル位置が [決定] の場合
if @index >= 180
 self.cursor_rect.set(544, 9 * 32, 64, 32)
# カーソル位置が [決定] 以外の場合
else
 x = 4 + @index / 5 / 9 * 152 + @index % 5 * 28
 y = @index / 5 % 9 * 32
 self.cursor_rect.set(x, y, 28, 32)
end
end
#--------------------------------------------------------------------------
# ● フレーム更新
#--------------------------------------------------------------------------
def update
super
# カーソル位置が [決定] の場合
if @index >= 180
 # カーソル下
 if Input.trigger?(Input::DOWN)
$game_system.se_play($data_system.cursor_se)
@index -= 180
 end
 # カーソル上
 if Input.repeat?(Input::UP)
$game_system.se_play($data_system.cursor_se)
@index -= 180 - 40
 end
# カーソル位置が [決定] 以外の場合
else
 # 方向ボタンの右が押された場合
 if Input.repeat?(Input::RIGHT)
# 押下状態がリピートでない場合か、
# カーソル位置が右端ではない場合
if Input.trigger?(Input::RIGHT) or
   @index / 45 < 3 or @index % 5 < 4
  # カーソルを右に移動
  $game_system.se_play($data_system.cursor_se)
  if @index % 5 < 4
	@index += 1
  else
	@index += 45 - 4
  end
  if @index >= 180
	@index -= 180
  end
end
 end
 # 方向ボタンの左が押された場合
 if Input.repeat?(Input::LEFT)
# 押下状態がリピートでない場合か、
# カーソル位置が左端ではない場合
if Input.trigger?(Input::LEFT) or
   @index / 45 > 0 or @index % 5 > 0
  # カーソルを左に移動
  $game_system.se_play($data_system.cursor_se)
  if @index % 5 > 0
	@index -= 1
  else
	@index -= 45 - 4
  end
  if @index < 0
	@index += 180
  end
end
 end
 # 方向ボタンの下が押された場合
 if Input.repeat?(Input::DOWN)
# カーソルを下に移動
$game_system.se_play($data_system.cursor_se)
if @index % 45 < 40
  @index += 5
else
  @index += 180 - 40
end
 end
 # 方向ボタンの上が押された場合
 if Input.repeat?(Input::UP)
# 押下状態がリピートでない場合か、
# カーソル位置が上端ではない場合
if Input.trigger?(Input::UP) or @index % 45 >= 5
  # カーソルを上に移動
  $game_system.se_play($data_system.cursor_se)
  if @index % 45 >= 5
	@index -= 5
  else
	@index += 180
  end
end
 end
 # L ボタンか R ボタンが押された場合
 if Input.repeat?(Input::L) or Input.repeat?(Input::R)
# ひらがな / カタカナ 移動
$game_system.se_play($data_system.cursor_se)
if @index / 45 < 2
  @index += 90
else
  @index -= 90
end
 end
end
update_cursor_rect
end
end

Con la mia lama fenderò le tenebre e con il mio scudo proteggerò i deboli

2912.png

Link to comment
Share on other sites

  • 0
ok veramente molte grazie ora va bene ;)
Chi di fiamma ferisce.. Di fiamma perisce! http://img503.imageshack.us/img503/9098/arconteoscurotp2.gif Abbraccia il lato oscuro della tua semplice esistenza.. Elimina i tuoi avversari.. http://img503.imageshack.us/img503/9840/sniperou7.gifhttp://img501.imageshack.us/img501/8754/img40e73c5e3824egy2.gif Non lasciare traccie.. diventa uno e nessuno..
Io uccido..
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...