Submit Your Article Guild Wars 2 Forum RPG Maker VX.com
 
RPG Maker
 

 Username:
 Password:
   Not a member? Register!



Home > RGSS Script Reference > Window_SkillStatus

Window_SkillStatus


Inherits from: Window_Base

Description: This window appears above the skill selection window. It shows the name, status, HP, and SP of the actor using the skill.

Code


class Window_SkillStatus < Window_Base
# ------------------------------------
def initialize(actor)
    super(0, 64, 640, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    @actor = actor
    refresh
  end
# ------------------------------------
  def refresh
    self.contents.clear
    draw_actor_name(@actor, 4, 0)
    draw_actor_state(@actor, 140, 0)
    draw_actor_hp(@actor, 284, 0)
    draw_actor_sp(@actor, 460, 0)
  end
end

Properties


Actor: The actor whose status is to be shown.

Methods


Initialize

Arguments:
Actor: The actor whose status is to be shown.
Local Variables: None

How it Works: This method initializes the window. The x coordinate for the upper-left pixel of the window is set to 0, the y coordinate is set to 64. The width of the window is set to 640, and the height is set to 64. The @actor instance variable is initialized, and the status is drawn with the refresh method.

Refresh

Arguments: None
Local Variables: None

How it Works: This method draws the contents of the window. The contents of the window are first cleared. The actor's name is then drawn at x coordinate 4 and y coordinate 0. The actor's status is drawn at x coordinate 140 and y coordinate 0. The actor's HP is then drawn at x coordinate 284 and y coordinate 0. The actor's SP is drawn at x coordinate 460 and y coordinate 0. Note that the calls to draw_actor_hp and draw_actor_sp are both called with their default width of 144 (due to the absence of the optional fourth argument). Therefore, the maximum values will be shown as well as the current values. 
Syntax
@
@@
$
alias
[array index]
attr_accessor
attr_reader
attr_writer
class
def
do
ensure
for
if
[iterator]
key => value
new
next
nil
redo
require
return
rescue
self
super
undef
unless
until
while
yield

Classes
Arrow_Actor
Arrow_Base
Arrow_Enemy
Game_Actor
Game_Actors
Game_BattleAct
Game_Battler
Game_Character
Game_Common
Game_Enemy
Game_Event
Game_Map
Game_Party
Game_Picture
Game_Player
Game_Screen
Game_SlfSwitch
Game_Switches
Game_System
Game_Troop
Game_Variables
Interpreter
Scene_Debug
Scene_End
Scene_Equip
Scene_File
Scene_Gameover
Scene_Item
Scene_Load
Scene_Map
Scene_Menu
Scene_Name
Scene_Save
Scene_Shop
Scene_Skill
Scene_Status
Scene_Title
Sprite_Battler
Sprite_Character
Sprite_Picture
Sprite_Timer
Spriteset_Battle
Spriteset_Map
Window_Base
Window_Battleresult
Window_Battlestatus
Window_Command
Window_DebugLeft
Window_DebugRight
Window_EquipItem
Window_EquipLeft
Window_EquipRight
Window_Gold
Window_Help
Window_InputNumb
Window_Item
Window_MenuStatus
Window_Message
Window_NameEdit
Window_NameInput
Window_PartyCom
Window_PlayTime
Window_SaveFile
Window_Selectable
Window_ShopBuy
Window_ShopCom
Window_ShopNum
Window_ShopSell
Window_ShopStatus
Window_Skill
Window_SkillStatus
Window_Status
Window_Steps
Window_Target

Other
Class Hierarchy
Global Variables


RPG RPG Revolution
RPG RPG Revolution is your #1 stop for game development and console RPG games, as well as those created by people like you. Link to us to support us, so we may grow to be better website community for you.

RPG RPG Revolution is an Privacy Policy and Legal