Izikhombo Zesikripthi ze-RGSS
Iyini i-@ in RGSS scripts?
Incazelo ye-@ Syntax yemibhalo ku-RGSS
Ichaza i-variable yesibonelo yekilasi. Ukuze ukwazi ukufunda nokubhala okuguquguqukayo kwalolu hlobo kufanele futhi uzenzele izindlela zokungena kuzo. Ungasebenzisa futhi i-attr_reader, attr_writer, noma i-attr_accessor shortcode ukuze ulayishe ngokuzenzakalelayo ama-opharetha afanele.
Isibonelo sekhodi:
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