Quick Weapon Switch for Blizz-ABS
Authors: Blizzard
Version: 1.11b
Type: Blizz-ABS Plugin
Key Term: Blizz-ABS Plugin
IntroductionThis script will allow to quickly switch the weapon by pressing one out of two possible keys.
This script is to be distributed under the same terms and conditions like the script it was created for: Blizz-ABS.
Features
- easy to configure
- no need to open the menu during heated action fights to change the weapon
ScreenshotsN/A for this sort of script.
DemoN/A
ScriptJust make a new script above main and paste this code into it.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Quick Weapon Switch for Blizz-ABS by Blizzard
# Version: 1.11b
# Type: Blizz-ABS Add-on
# Date: 28.11.2009
# Date v1.01b: 23.2.2010
# Date v1.1b: 28.11.2010
# Date v1.11b: 5.12.2010
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# 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 requires Blizz-ABS v2.7 or
# higher to work properly. It will allow to quickly switch the weapon by
# pressing one out of two possible keys.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
if !$BlizzABS || BlizzABS::VERSION < 2.7
raise 'ERROR: The "Quick Weapon Switch" plugin requires Blizz-ABS 2.7 or higher.'
end
module BlizzCFG
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
LEFT_BUTTON = Input::Prevpage
RIGHT_BUTTON = Input::Nextpage
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
$blizzabs_wswitch = 1.11
end
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
alias update_wswitch_later update
def update
update_wswitch_later
return if !$game_player.valid? || $game_player.battler.equip_fix?(0)
array = []
if $game_player.battler.weapon_id > 0
start = $game_player.battler.weapon_id
if Input.trigger?(BlizzCFG::LEFT_BUTTON)
array = ((start + 1)...(start + $data_weapons.size)).to_a.reverse
elsif Input.trigger?(BlizzCFG::RIGHT_BUTTON)
array = ((start + 1)...(start + $data_weapons.size)).to_a
end
end
array.each {|id|
id = (id + $data_weapons.size) % $data_weapons.size
if id != 0 && $game_party.weapon_number(id) > 0 &&
$game_player.battler.equippable?($data_weapons[id])
$game_system.se_play($data_system.cursor_se)
$game_player.battler.equip(0, id)
break
end}
end
end
InstructionsIn the script in the first comment.
CompatibilityRequires Blizz-ABS to work.
Credits and Thanks
Author's NotesKeep in mind that this plugin comes UNDER Blizz-ABS. This script is not fully supported by me as my other scripts are.
If you find any bugs, please report them here:
http://forum.chaos-project.com
That's it! N-Joy! =D
<3
<3
<3
</3
Fuck YEAH Seaking Blizzard!
I´m not sure, since i have yet to test this, but is this sort of like in Castlevania Dawn of Sorrow, where you can make two equipment settings A and B, and by pressing a button, it switches to the other one. But, only for weapons, if i´ve understood things correctly? Would it be possible then to extend to being like in CV:DoS, so that your weapon, armor, accesory/accesories (if using some multiequip), all would change to another previosly set up in the menu?
This cycles through weapon IDs and switches if another weapon along the way exists. Of course it can be done, I just won't do it.
Will this also switch the ammunition needed for bow 'n arrow weapons?
I didn't download it yet but it's supposed to only switch weapons and players have to hoykey ammunition themselves anyway so I'm pretty sure it doesn't.
Update to v1.01b.
sorry for reviving an ancient thread but,
when I use this script, my character can switch with weapon that should can't be used
ex : archer can switch his bow to a sword
how do I fix this?
~please don't mind my bad english
There you go, I fixed it.
I changed it to new version and now I can't switch hero's weapon at all :???:
My bad, I didn't fix it properly. Try the new version 1.11b.