Quick Question

Started by Wizered67, May 25, 2010, 11:32:25 pm

Previous topic - Next topic

Wizered67

Okay, I have a very quick little question. I am using Xp by the way.

Is it possible to fix an armor to the player in the middle of the game? I know you can do iut in the database, but can you do it in-game?

Jragyn

I didn't test it or anything, but if it was possible, it'd likely have to do with a script call from this block of code:

Spoiler: ShowHide
  #--------------------------------------------------------------------------
  # * Determine Fixed Equipment
  #     equip_type : type of equipment
  #--------------------------------------------------------------------------
  def equip_fix?(equip_type)
    case equip_type
    when 0  # Weapon
      return $data_actors[@actor_id].weapon_fix
    when 1  # Shield
      return $data_actors[@actor_id].armor1_fix
    when 2  # Head
      return $data_actors[@actor_id].armor2_fix
    when 3  # Body
      return $data_actors[@actor_id].armor3_fix
    when 4  # Accessory
      return $data_actors[@actor_id].armor4_fix
    end
    return false
  end

Which resides in the Game_Actor class.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?