Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##Attack without Weapon and personal ATK/PDEF/MDEF/EVA statistics
- ##Created by PrinceEndymion88
- ##http://sailormoonanotherstory2.altervista.org
- ##version 0.1
- ##Thanks to ValentinoAvon for his base script
- # {ID_HERO => ID ANIMATION}
- # Instruction:
- # First of all copy the script above Main
- # This define the animation displayed when an hero have no weapon assigned.
- # For example, if you want to assign the animation 386 at hero 1 you have to
- # insert 1=>386
- # You have to use comma to separe every personal animation.
- # For example ANIMATION_NO_WEAPON = {1=>386, 2=>300, 3=>150}
- ANIMATION_NO_WEAPON = {1=>10}
- # Here you can define the default animation for the heroes which have no
- # animation assigned.
- ANIMATION_NO_WEAPON_DEFAULT = 11
- # Here you have to insert the multiplier for your personal. Statistics.
- # ATK, PDEF, MDEF and EVA will be calculated with the following formula:
- # ATK = HERO_LEVEL * MULTIPLIER_ATK
- # (for example if your hero level is 25 and your MULTIPLIER_ATK is 2,
- # at level 25 your hero will have a base attack = 50)
- # PDEF = HERO_LEVEL * MULTIPLIER_PDEF
- # (for example if your hero level is 25 and your MULTIPLIER_PDEF is 3,
- # at level 25 your hero will have a base physical defence = 75)
- # MDEF = HERO_LEVEL * MULTIPLIER_MDEF
- # (for example if your hero level is 25 and your MULTIPLIER_MDEF is 2,
- # at level 25 your hero will have a base magical defence = 50)
- # EVA = HERO_LEVEL * MULTIPLIER_EVA
- # (for example if your hero level is 25 and your MULTIPLIER_EVA is 4,
- # at level 25 your hero will have a base evasion = 100)
- # Naturally if you equip your hero with weapons or armor you have to sum base
- # statistics + additional statistics
- MULTIPLIER_ATK = {1=>2}
- MULTIPLIER_PDEF = {1=>3}
- MULTIPLIER_MDEF = {1=>2}
- MULTIPLIER_EVA = {1=>4}
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # * Define Attack Power with and without weapon
- #--------------------------------------------------------------------------
- alias personal_base_atk base_atk
- def base_atk
- personal_base_atk + (@level * (MULTIPLIER_ATK[@actor_id] || 0))
- end
- #--------------------------------------------------------------------------
- # * Define Physical Defense with and without weapon/armor
- #--------------------------------------------------------------------------
- alias personal_base_pdef base_pdef
- def base_pdef
- personal_base_pdef + (@level * (MULTIPLIER_PDEF[@actor_id] || 0))
- end
- #--------------------------------------------------------------------------
- # * Define Magic Defense with and without weapon/armor
- #--------------------------------------------------------------------------
- alias personal_base_mdef base_mdef
- def base_mdef
- personal_base_mdef + (@level * (MULTIPLIER_MDEF[@actor_id] || 0))
- end
- #--------------------------------------------------------------------------
- # * Define Evasion Correction with and without armor
- #--------------------------------------------------------------------------
- alias personal_base_eva base_eva
- def base_eva
- personal_base_eva + (@level * (MULTIPLIER_EVA[@actor_id] || 0))
- end
- #--------------------------------------------------------------------------
- # * Define Animation ID with and without weapon
- #--------------------------------------------------------------------------
- alias personal_animation2_id animation2_id
- def animation2_id
- weapon = $data_weapons[@weapon_id]
- return personal_animation2_id if weapon != nil
- return ANIMATION_NO_WEAPON[@actor_id] || ANIMATION_NO_WEAPON_DEFAULT
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement