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