Script Ruby : Color & Weapon



Script : you need not watch, but if you would use Ruby, write, edit Script, you can watch:

Color :
red
The red value (0-255). Values out of range are automatically corrected.

green
The green value (0-255). Values out of range are automatically corrected.

blue
The blue value (0-255). Values out of range are automatically corrected.

alpha
The alpha value (0-255). Values out of range are automatically corrected.

Weapon : id
The weapon ID.
name
The weapon name.

icon_name
The weapon's icon graphic file name.

description
The weapon description.

animation1_id
The animation ID when using the weapon.

animation2_id
The animation ID when on the receiving end of the weapon.
price
The weapon's price.
atk
The weapon's attack power.
pdef
The weapon's physical defense rating.
mdef
The weapon's magic defense rating.
str_plus
The weapon's strength bonus.
dex_plus
The weapon's dexterity bonus.
agi_plus
The weapon's agility bonus.
int_plus
The weapon's intelligence bonus.
element_set
The weapon's element. An Elemental ID array.
plus_state_set
States to add. A State ID array.
minus_state_set
States to cancel. A State ID array.

==--
==--

Definition

module RPG
  class Weapon
    def initialize
      @id = 0
      @name = ""
      @icon_name = ""
      @description = ""
      @animation1_id = 0
      @animation2_id = 0
      @price = 0
      @atk = 0
      @pdef = 0
      @mdef = 0
      @str_plus = 0
      @dex_plus = 0
      @agi_plus = 0
      @int_plus = 0
      @element_set = []
      @plus_state_set = []
      @minus_state_set = []
    end
    attr_accessor :id
    attr_accessor :name
    attr_accessor :icon_name
    attr_accessor :description
    attr_accessor :animation1_id
    attr_accessor :animation2_id
    attr_accessor :price
    attr_accessor :atk
    attr_accessor :pdef
    attr_accessor :mdef
    attr_accessor :str_plus
    attr_accessor :dex_plus
    attr_accessor :agi_plus
    attr_accessor :int_plus
    attr_accessor :element_set
    attr_accessor :plus_state_set
    attr_accessor :minus_state_set
  end
end


BlogRoll

Theo Allen RPG Maker

Popular Posts

Make My Own Game - Do Ngoc Nhan

Infolinks