Secondary Weapon for Blizz-ABS
Authors: Blizzard
Version: 1.0b
Type: Blizz-ABS plugin
Key Term: Blizz-ABS Plugin
IntroductionThis script will add a button for a secondary weapon which is equipped in the place of the armor. This plugin only provides the control, not the equipping!
This script is to be distributed under the same terms and conditions like the script it was created for: Blizz-ABS.
Features
- use a second weapon on button press
- easy to configure
- provides only the control, NOT the equipping system
ScreenshotsN/A
DemoN/A
ScriptJust make a new script above main and paste this code into it.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Secondary Weapon for Blizz-ABS by Blizzard
# Version: 1.0b
# Type: Blizz-ABS Add-on
# Date: 4.12.2008
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# This script is to be distributed under the same terms and conditions like
# the script it was created for: Blizz-ABS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
# This script must be placed below Blizz-ABS and require Blizz-ABS v2.1 or
# higher to work properly. It will add a button for a secondary weapon which
# is equipped in the place of the armor. This plugin only provides the
# control, not the equipping!
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
if !$BlizzABS || BlizzABS::VERSION < 2.1
raise 'ERROR: The "Secondary Weapon" plugin requires Blizz-ABS 2.1 or higher.'
end
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# button for secondary weapon
SECONDARY_WEAPON_BUTTON = Input::Key['G']
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
#==============================================================================
# BlizzABS::Controls
#==============================================================================
class BlizzABS::Controls
alias update_attack_aqua_later update_attack
def update_attack
return true if update_attack_aqua_later
if $game_system.attack_button && Input.trigger?(SECONDARY_WEAPON_BUTTON)
$game_player.use_attack2
return true
end
return false
end
end
#==============================================================================
# Map_Actor
#==============================================================================
class Map_Actor
def use_attack2
self.battler.weapon_id, self.battler.armor1_id =
self.battler.armor1_id, self.battler.weapon_id
result = (self.battler.weapon_id != 0 && use_attack)
self.battler.weapon_id, self.battler.armor1_id =
self.battler.armor1_id, self.battler.weapon_id
return result
end
end
#==============================================================================
# Game_Actor
#==============================================================================
class Game_Actor
attr_accessor :weapon_id
attr_accessor :armor1_id
end
InstructionsNone required.
CompatibilityRequires Blizz-ABS to work.
Credits and Thanks
- Boris "Blizzard" Mikić
- thanks to Aqua for requesting this a long time ago
Author's NotesKeep in mind that this plugin comes UNDER Blizz-ABS. This script was done on request quite some time ago and is not fully supported by me as my other scripts are.
If you find any bugs, please report them here:
http://forum.chaos-project.comThat's it! N-Joy! =D