RGSSスクリプトリファレンス
RGSSスクリプトの@とは何ですか?
RGSSのスクリプトの@構文の説明
クラスのインスタンス変数を定義します。 このタイプの変数を読み書きできるようにするには、それらのアクセサーメソッドも作成する必要があります。 attr_reader、attr_writer、またはattr_accessorショートコードを使用して、関連する演算子を自動的にロードすることもできます。
コード例:
def initialize
@battler_name = ""
@battler_hue = 0
@hp = 0
@sp = 0
@states = []
@states_turn = {}
@maxhp_plus = 0
@maxsp_plus = 0
@str_plus = 0
@dex_plus = 0
@agi_plus = 0
@int_plus = 0
@hidden = false
@immortal = false
@damage_pop = false
@damage = nil
@critical = false
@animation_id = 0
@animation_hit = false
@white_flush = false
@blink = false
@current_action = Game_BattleAction.new
end