Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Two-Handed Weapons
#1
Two-Handed Weapons
by RPG Advocate
saved from Phylomortis.Com


This script adds functionality for two-handed weapons. When a two-handed weapon is equipped, the equipped shield will be unequipped. When a shield is equipped while a two-handed weapon is equipped, the weapon will be unequipped. The stat changes shown in the left window reflect this. Additionally, this script makes it so that the weapon or shield that will be unequipped is shown in a partially transparent color. To declare a weapon as two-handed, add its ID number to the "$game_system.two_handed_weapons" array.

Note: If simply copied as directed, this script will mess up the Advanced Equip Window script. This script can be used with the Advanced Equip Window script, but you will need some understanding of how the code works in order to know how to merge thetwo together. It is your responsibility to understand this, so please don't bug me about it


Script
Two-Handed Weapons
Reply }
#2
what line is the actual array in? i can't make sense of anything in ruby
Reply }
#3
Technically around line 24 within the first bit of code shown here:
Code:
alias twohanded_initialize initialize
  def initialize
    twohanded_initialize
    @two_handed_weapons = []
  end
end
So you can edit it to look like this...
Code:
alias twohanded_initialize initialize
  def initialize
    twohanded_initialize
    @two_handed_weapons = [5,6,7,8]
  end
end
... Would make the default spears (by their database IDs) all two-handed weapons.

BUT... you don't really need to edit the default code. After installing, you can just make a event perform a script call just by passing...
Code:
$game_system.two_handed_weapons = [5,6,7,8]
... to do the same thing.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]

Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   KEW XP - Enemies + Weapons kyonides 1 2,865 01-27-2019, 06:26 PM
Last Post: kyonides
   Weapons : Target All Kain Nobel 1 3,898 06-04-2016, 11:23 PM
Last Post: Steel Beast 6Beets
   Weapons That Use HP/SP DerVVulfman 0 3,581 12-31-2009, 05:07 AM
Last Post: DerVVulfman
   Cursed Weapons and Armor RPG Advocate 0 3,296 03-03-2008, 04:51 AM
Last Post: RPG Advocate



Users browsing this thread: