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]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Weapons Blocked from Attacks DerVVulfman 0 1,011 12-03-2023, 03:41 AM
Last Post: DerVVulfman
   Weapons Swap XP kyonides 1 1,666 01-15-2023, 04:56 AM
Last Post: kyonides
   KEW XP - Enemies + Weapons kyonides 1 4,597 01-27-2019, 06:26 PM
Last Post: kyonides
   Weapons : Target All Kain Nobel 1 5,768 06-04-2016, 11:23 PM
Last Post: Steel Beast 6Beets
   Weapons That Use HP/SP DerVVulfman 0 4,946 12-31-2009, 05:07 AM
Last Post: DerVVulfman
   Cursed Weapons and Armor RPG Advocate 0 4,547 03-03-2008, 04:51 AM
Last Post: RPG Advocate



Users browsing this thread: 1 Guest(s)