What script is the one that handles pulling, displaying, and allowing the player to use skills during a battle? Not the command "Skills", but that shows each skill that your actor can use during the battle.
Accessing the skill array
RGSSx Script SupportWindow_BattleSkill i think is the one you are looking for?
That was my first thought too, but I don't see anything in regards to an array.
#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
# This window is for selecting skills to use in the battle window.
#==============================================================================
class Window_BattleSkill < Window_SkillList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = help_window.height
super(0, y, Graphics.width, info_viewport.rect.y - y)
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
#--------------------------------------------------------------------------
# * Show Window
#--------------------------------------------------------------------------
def show
select_last
@help_window.show
super
end
#--------------------------------------------------------------------------
# * Hide Window
#--------------------------------------------------------------------------
def hide
@help_window.hide
super
end
end
#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
# This window is for selecting skills to use in the battle window.
#==============================================================================
class Window_BattleSkill < Window_SkillList
#--------------------------------------------------------------------------
# * Object Initialization
# info_viewport : Viewport for displaying information
#--------------------------------------------------------------------------
def initialize(help_window, info_viewport)
y = help_window.height
super(0, y, Graphics.width, info_viewport.rect.y - y)
self.visible = false
@help_window = help_window
@info_viewport = info_viewport
end
#--------------------------------------------------------------------------
# * Show Window
#--------------------------------------------------------------------------
def show
select_last
@help_window.show
super
end
#--------------------------------------------------------------------------
# * Hide Window
#--------------------------------------------------------------------------
def hide
@help_window.hide
super
end
end
Thats because it inherits all the important methods from its parent class (Window_SkillList) and when it uses the method 'super' its gaining the data from the parent class. For example, the @data array...
^_^
^_^
battler_object.skills will return the array of skills
EX: if you want to get skills of actor 1
$game_actors[1].skills
EX: if you want to get skills of actor 1
$game_actors[1].skills
Ah ok, thank you both!
Original thread: https://forums.rpgmakerweb.com/threads/accessing-the-skill-array.24943/