Gah...any ideas? Anyone?
I noticed, for instance, that Guillame used the word slot, so I tried that instead of id, no joy.
More importantly, when I tried what you guys suggested, I get this:
undefined method '[]' for :weapon_ids:Symbol
The code, in case I misinterpreted or other such silly thing:
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['L']
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# 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_ids[1], self.battler.weapon_ids[1] =
self.battler.weapon_ids[0], self.battler.weapon_ids[1]
result = (self.battler.weapon_ids[0] != 0 && use_attack)
self.battler.weapon_ids[1], self.battler.weapon_ids[0] =
self.battler.weapon_ids[0], self.battler.weapon_ids[1]
return result
end
end
#==============================================================================
# Game_Actor
#==============================================================================
class Game_Actor
attr_accessor :weapon_ids[0]
attr_accessor :weapon_ids[1]
end