certo ,uso rpg maker vvx ace e lo script è
class Scene_Cambio < Scene_MenuBase
def start
super
@cambio_window = Window_Cambio.new(@actor)
@cambio_window.set_handler(:cancel, method(:return_scene))
@cambio_window.set_handler(:pagedown, method(:next_actor))
@cambio_window.set_handler(:pageup, method(:prev_actor))
end
def on_actor_change
@cambio_window.actor = @actor
@cambio_window.activate
end
end
class Window_Cambio < Window_Selectable
def initialize(actor)
super(0, 0, Graphics.width, Graphics.height)
@actor = actor
refresh
activate
end
def actor=(actor)
return if @actor == actor
@actor = actor
refresh
end
def refresh
contents.clear
draw_block1 (line_height * 0)
draw_horz_line(line_height * 1)
draw_block2 (line_height * 2)
draw_horz_line(line_height * 6)
draw_block3 (line_height * 7)
draw_horz_line(line_height * 11)
end
def draw_block1(y)
draw_text(x, y + line_height * 0, 180, line_height, "Scegli i personaggi")
end
def draw_block2(y)
draw_actor_face(@actor, 8, y)
draw_actor_face(@actor, 180, y)
end
def draw_block3(y)
draw_actor_face(@actor, 8, y)
end
def draw_horz_line(y)
line_y = y + line_height / 2 - 1
contents.fill_rect(0, line_y, contents_width, 2, line_color)
end
def line_color
color = normal_color
color.alpha = 8
color
end
end