Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No Equipment Stats
#1
No Equipment Stats
Version: 1.0
by Leon Westbrooke
Jun 22, 2007

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


Introduction

This allows your actors to still have attack and defense when there is nothing equipped.

Features
  • Strength Determines Attack
  • Dexterity determines PDEF
  • Intelligence determines MDEF
Screenshots
None really needed. Plug in the script and have a look. It just gives stats based on whether or not equipment is, well, equipped.



Script

Code:
#===================================
#  No Equipment Stats, by Leon
#===================================
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  * Game_Actor
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class Game_Actor < Game_Battler
  
  alias leon_wyzstat_gameactor_baseatk base_atk
  alias leon_wyzstat_gameactor_basepdef base_pdef
  alias leon_wyzstat_gameactor_basemdef base_mdef
  
  #Multiplies strength by a number.  1.0 = strength, higher for more atk, lower for less.
  #Use decimals, as shown.
  STRENGTH_MOD = 1.4
  #Multiplies dexterity by a number.  1.0 = dexterity, higher for more Phys Defense, lower for less.
  #Use decimals, as shown.
  DEXTERITY_MOD = 1.6
  #Multiplies intelligence by a number.  1.0 = intellect, higher for more Magic Defense, lower for less.
  #Use decimals, as shown.
  INTELLECT_MOD = 1.6
  
  def base_atk
    n = leon_wyzstat_gameactor_baseatk
    if n == 0
      n += $data_actors[@actor_id].parameters[2, @level] * STRENGTH_MOD
      n = n.round
      return n
    else
      return n
    end
  end
  
  def base_pdef
    n = leon_wyzstat_gameactor_basepdef
    if n == 0
      n += $data_actors[@actor_id].parameters[3, @level] * DEXTERITY_MOD
      n = n.round
      return n
    else
      return n
    end
  end
  
  def base_mdef
    n = leon_wyzstat_gameactor_basemdef
    if n == 0
      n += $data_actors[@actor_id].parameters[5, @level] * INTELLECT_MOD
      n = n.round
      return n
    else
      return n
    end
  end
end



Instructions

Place this script below all default, but above Main. Punch in the desired values in the constant variables.

Compatibility
No known issues.

Credits and Thanks
Thanks to Wyzrd for the idea.

Terms and Conditions
Please, give credit where it is due, and do not post this script on any site without my permission. Gracias.
}




Users browsing this thread: