Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attack with no weapon
#1
Attack with no weapon
Sephirothtds

May 5, 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.


I hope this is the right sub forum for this.

Well that aside this script basically allows you to have the players Strength as their Attack power when they have no weapons equiped instead of magically losing all of their attack powers for having no weapon.

To use it's very simple just put it above main and look for this in the script:

Code:
WEAPON_ANIMATION_ID = 4


Then change the number 4 to the ID of the animation you want it to have when the player attacks with no weapon.

Code:
#==============================================================================
# TDS Attack with no weapon
# Version: 1.0
# This script aliases the base_atk method and the animation2_id method.
#==============================================================================
#------------------------------------------------------------------------------
# This script allows to attack with now weapons.
#==============================================================================
# When no weapon is equiped animation ID
WEAPON_ANIMATION_ID = 4
#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
# This class handles the actor. It's used within the Game_Actors class
# ($game_actors) and refers to the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
#--------------------------------------------------------------------------
# * Get Basic Attack Power
#--------------------------------------------------------------------------
alias tds_no_weapon_attack_base_atk base_atk
def base_atk
tds_no_weapon_attack_base_atk
weapon = $data_weapons[@weapon_id]
return weapon != nil ? weapon.atk : base_str
end
#--------------------------------------------------------------------------
# * Get Offensive Animation ID for Normal Attacks
#--------------------------------------------------------------------------
alias tds_no_weapon_attack_animation2_id animation2_id
def animation2_id
tds_no_weapon_attack_animation2_id
weapon = $data_weapons[@weapon_id]
return weapon != nil ? weapon.animation2_id : WEAPON_ANIMATION_ID
end
end
}


Possibly Related Threads…
Thread Author Replies Views Last Post
  Weapon/Battle Graphic Change Edit Skyboar 0 2,243 04-12-2008, 01:00 PM
Last Post: Skyboar



Users browsing this thread: