Jump to content
Rpg²S Forum
  • 0

formattazione del testo


D-Tino
 Share

Question

mi potete dare la lista delle cose da scrivere ad esempio per il grassetto o per far uscire scritto il nome che ha scelto chi gioca?

Visto che alterno periodi di pausa a quelli attivi, ecco il mio log:

12/02/2009= SALTUARIAMENTE sul forum, rpg maker xp= OFF

7/01/2009= PRESENTE sul forum, rpg maker xp=ON

30/12/08=PRESENTE sul forum, rpg maker xp=OFF

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Per il grassetto c'era uno script fatto da Pro.

Per far visualizzare il nome del pg così come compare nel database, ti basta scrivere \n[iD personaggio].

Dove al posto di ID Personaggio metti il numero che compare nell'elenco dei personaggi relativo al pg di cui vuoi visualizzare il nome.

Ad esempio, per visualizzare il nome di Aluxes (o qualsiasi altro nome gli affibbi il giocatore) ti basterà scrivere \n[1]

(Sì, sono l'AnteroLehtinen che bazzica in chat. E... sì, una volta insegnavo storyboarding.)

http://img26.imageshack.us/img26/7048/firmadn.png

Link to comment
Share on other sites

  • 0
grazie, però ho un problema, quando devo scrivere le lettere, nella "tastiera virtuale" non si visualizza niente!

Visto che alterno periodi di pausa a quelli attivi, ecco il mio log:

12/02/2009= SALTUARIAMENTE sul forum, rpg maker xp= OFF

7/01/2009= PRESENTE sul forum, rpg maker xp=ON

30/12/08=PRESENTE sul forum, rpg maker xp=OFF

Link to comment
Share on other sites

  • 0

Credo ci fosse già una discussione in merito.

Incolla questo codice al posto della Window_NameInput:

#==============================================================================
# ** Window_NameInput
#------------------------------------------------------------------------------
#  This window is used to select text characters on the input name screen.
#==============================================================================

class Window_NameInput < Window_Base
 CHARACTER_TABLE =
 [
"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"," "," "," "," ",
"+","-","*","/","!",
"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",
"" ,"" ,"" ,"" ,"" ,
 ]
 #--------------------------------------------------------------------------
 # * Object Initialization
 #--------------------------------------------------------------------------
 def initialize
super(0, 128, 640, 352)
self.contents = Bitmap.new(width - 32, height - 32)
@index = 0
refresh
update_cursor_rect
 end
 #--------------------------------------------------------------------------
 # * Text Character Acquisition
 #--------------------------------------------------------------------------
 def character
return CHARACTER_TABLE[@index]
 end
 #--------------------------------------------------------------------------
 # * Refresh
 #--------------------------------------------------------------------------
 def refresh
self.contents.clear
for i in 0...90
  x = 140 + i / 5 / 9 * 180 + i % 5 * 32
  y = i / 5 % 9 * 32
  self.contents.draw_text(x, y, 32, 32, CHARACTER_TABLE[i], 1)
end
self.contents.draw_text(428, 9 * 32, 48, 32, "OK", 1)
 end
 #--------------------------------------------------------------------------
 # * Cursor Rectangle Update
 #--------------------------------------------------------------------------
 def update_cursor_rect
# If cursor is positioned on [OK]
if @index >= 90
  self.cursor_rect.set(428, 9 * 32, 48, 32)
# If cursor is positioned on anything other than [OK]
else
  x = 140 + @index / 5 / 9 * 180 + @index % 5 * 32
  y = @index / 5 % 9 * 32
  self.cursor_rect.set(x, y, 32, 32)
end
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
super
# If cursor is positioned on [OK]
if @index >= 90
  # Cursor down
  if Input.trigger?(Input::DOWN)
	$game_system.se_play($data_system.cursor_se)
	@index -= 90
  end
  # Cursor up
  if Input.repeat?(Input::UP)
	$game_system.se_play($data_system.cursor_se)
	@index -= 90 - 40
  end
# If cursor is positioned on anything other than [OK]
else
  # If right directional button is pushed
  if Input.repeat?(Input::RIGHT)
	# If directional button pressed down is not a repeat, or
	# cursor is not positioned on the right edge
	if Input.trigger?(Input::RIGHT) or
	   @index / 45 < 3 or @index % 5 < 4
	  # Move cursor to right
	  $game_system.se_play($data_system.cursor_se)
	  if @index % 5 < 4
		@index += 1
	  else
		@index += 45 - 4
	  end
	  if @index >= 90
		@index -= 90
	  end
	end
  end
  # If left directional button is pushed
  if Input.repeat?(Input::LEFT)
	# If directional button pressed down is not a repeat, or
	# cursor is not positioned on the left edge
	if Input.trigger?(Input::LEFT) or
	   @index / 45 > 0 or @index % 5 > 0
	  # Move cursor to left
	  $game_system.se_play($data_system.cursor_se)
	  if @index % 5 > 0
		@index -= 1
	  else
		@index -= 45 - 4
	  end
	  if @index < 0
		@index += 90
	  end
	end
  end
  # If down directional button is pushed
  if Input.repeat?(Input::DOWN)
	# Move cursor down
	$game_system.se_play($data_system.cursor_se)
	if @index % 45 < 40
	  @index += 5
	else
	  @index += 90 - 40
	end
  end
  # If up directional button is pushed
  if Input.repeat?(Input::UP)
	# If directional button pressed down is not a repeat, or
	# cursor is not positioned on the upper edge
	if Input.trigger?(Input::UP) or @index % 45 >= 5
	  # Move cursor up
	  $game_system.se_play($data_system.cursor_se)
	  if @index % 45 >= 5
		@index -= 5
	  else
		@index += 90
	  end
	end
  end
  # If L or R button was pressed
  if Input.repeat?(Input::L) or Input.repeat?(Input::R)
	# Move capital / small
	$game_system.se_play($data_system.cursor_se)
	if @index < 45
	  @index += 45
	else
	  @index -= 45
	end
  end
end
update_cursor_rect
 end
end

(Sì, sono l'AnteroLehtinen che bazzica in chat. E... sì, una volta insegnavo storyboarding.)

http://img26.imageshack.us/img26/7048/firmadn.png

Link to comment
Share on other sites

  • 0
non va ancora

Visto che alterno periodi di pausa a quelli attivi, ecco il mio log:

12/02/2009= SALTUARIAMENTE sul forum, rpg maker xp= OFF

7/01/2009= PRESENTE sul forum, rpg maker xp=ON

30/12/08=PRESENTE sul forum, rpg maker xp=OFF

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...