Referans Script RGSS

Ki sa ki @ nan scripts RGSS?

Deskripsyon @ sentaks scripts yo nan RGSS

Defini yon varyab egzanp pou yon klas. Pou kapab li ak ekri varyab nan kalite sa a ou bezwen tou kreye metòd akseswar pou yo. Ou kapab tou itilize shortcode attr_reader, attr_writer, oswa attr_accessor pou chaje operatè ki enpòtan yo otomatikman.

Egzanp Kòd:

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

Kite yon repons

Adrès imèl ou pa pral dwe pibliye. Jaden obligatwa yo make ak *

Sit sa a sèvi ak Akismet diminye Spam. Aprann kijan done kòmantè ou yo trete.