This is a custom scene and not a default one.
It lists the actors currently in the party when loaded up through a script call. However, how can I make it so that you can scroll through the list by using the up and down keys on the keyboard? Also when the scene is loaded I cannot exit it without shutting down the game completely. The B button does not register, does anyone know why?
It lists the actors currently in the party when loaded up through a script call. However, how can I make it so that you can scroll through the list by using the up and down keys on the keyboard? Also when the scene is loaded I cannot exit it without shutting down the game completely. The B button does not register, does anyone know why?
Code:
class Window_ActorList < Window_Selectable def initialize super(0, 56, Graphics.width / 2, Graphics.height / 2) refresh self.index = 0 end def refresh(main = -1, sub = -1) self.contents.clear @item_max = $game_party.members.size for actor in $game_party.members y = actor.index * line_height if sub == -1 self.contents.font.color.alpha = main == actor.index ? 128 : 255 elsif sub > -1 self.contents.font.color.alpha = main == actor.index ? 128 : sub == actor.index ? 128 : 255 end self.contents.draw_text(x, y, 108, line_height, actor.name) end endend#============================================================================#============================================================================class Scene_List < Scene_Base def start super @background_sprite = Sprite.new @background_sprite.bitmap = SceneManager.background_bitmap @background_sprite.color.set(16, 16, 16, 128) @actorlist = Window_ActorList.new @index = @actorlist.index @main = -1 @sub = -1 @counter = 0 end def update super @background_sprite.update @actorlist.update end def terminate super @background_sprite.dispose @actorlist.dispose end def return_scene $scene = Scene_Map.new endend