आरजीएसएस स्क्रिप्ट संदर्भ
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