Multi Equip V3.1.4

Just to let you know I got your demo and it will be a few days let me get a free moment to look at it.
if i whould can i help you?
i whould like add colors for Unique and Quest zb.
and possible a script for set-items.
Umm, I'll see what I can do

and you are asking this right

ParkAvenger from IRC wrote:
[13:28:08] He wants to be able to have Quest and Unique items be a different color, and he wants a script that causes items to give bonuses when equipped together (set items).


thanks ParkAvenger
module Unique_Color
ITEMS = {#the ids of the items /items can more then one thing
"UNIQUE" => [["item-ids"],["weapon-ids"],["armor-ids"]],
"Quest" => [["item-ids"],["weapon-ids"],["armor-ids"]]
}
COLOR ={ # the color of the items
"UNIQUE" => Color.new(164,143,121,255),
"Quest" => Color.new(164,143,121,255)
}
KEYWORDS=["UNIQUE","Quest"]#the ranking of Items
end
Expand to see the code.

if the module not avelable color nomal.
i will defs for it.
ummm let me do the scripting, not that I don't trust you or anything it's just one of those things (I'd feel a lot better if it was coded by me)
is this the reason why you build so much good stuff?
this is only a incitation.
you can modify if you whould...
Uhh... I've got a problem. When I enter a battle, my character can't do anything, and it's doing the same thing in the demo version that I downloaded... somebody help?
Reread the setup please

Specifically this
  #--------------------------------------------------------------------------
  # * Nox Penalty (Actor Can not move in battle)
  #   - syntax actor_id => bool (true to can't false can
  #--------------------------------------------------------------------------
  Nox_Penalty = { 1 => true
  }
Expand to see the code.


-_-
i can't find "Nox_Penalty" which one is it under? The one with "setup"?

err... "Multi_Equip_Setup" is that where?

oh, sorry... i found it...

im getting a "stack level too deep" error in the scripting... any fixes? thanks...
Where you have to give me more information I am not a mind reader
"Script 'Window_Sprites' line 69: SystemStackError Occoured. Stack Level Too Deep" thats the error I get when I test play my game..

I'm starting to think that the system won't work with the Advance Battle System I've got scripted...
Send a Demo, I had an idea of what's wrong but I want to be sure of myself
Its not possible for certain weapons to ONLY be able to equipped in a certain slot is it?
Just that I want a special "Sidearm" slot, that just increases the character's attack level. Don't worry if it's not possible, I just wanted to check :)
no not as of now :p
Hate to be a stick in the mud (where did I get THAT from?)... but have you tried this recently?
  #--------------------------------------------------------------------------
  # * How Many Weapon Slots Needed (Maximum)
  #--------------------------------------------------------------------------
  Weapon_Slots = 1
Expand to see the code.
Unfortunately, I get this...

Script `Equip Weapons' line 249: NameError Occurred.
Undefined method `weapon2_id' for class 1Game_Actor'

And that's just me changing the demo (that I just downloaded) to have only 1 weapon slot.
BrunoTR;242755 wrote:
Its not possible for certain weapons to ONLY be able to equipped in a certain slot is it?
Just that I want a special "Sidearm" slot, that just increases the character's attack level. Don't worry if it's not possible, I just wanted to check :)


It's your lucky day get the new version I have added that :)

DerVVulfman;243495 wrote:
Hate to be a stick in the mud (where did I get THAT from?)... but have you tried this recently?
  #--------------------------------------------------------------------------
  # * How Many Weapon Slots Needed (Maximum)
  #--------------------------------------------------------------------------
  Weapon_Slots = 1
Expand to see the code.
Unfortunately, I get this...

Script `Equip Weapons' line 249: NameError Occurred.
Undefined method `weapon2_id' for class 1Game_Actor'


And that's just me changing the demo (that I just downloaded) to have only 1 weapon slot.



Come on read into it more :p How Many Weapon Slots Needed (Maximum) that value doesn't determine how many weapon slots there are it however determines how many weapon(i)_id methods are created.

you set it to one yet however someone needed more than one. and there is your problem
  1 => %w( w w a1 a2 a3 a4 a5 ),
Expand to see the code.


you see that there are two w's therefore two weapons are required and the script will call for the two methods weapon_id and weapon2_id

but well this isn't the case anymore I have removed Weapon_Slots and Armor_Slots, but I am not satisfied with the way I am doing it now, so heads up!

-----------------------------
Demo Updated to version 3.1

Cleans up code

You guys are lucky 3 addons for this script suddenly appear! (nothing special though)

Equipment Types Addon -> allows for equipment to only be equipped in a certain slot
Non-Hit Weapons Addon -> allows for some weapons to not attack useful for addon weapons
Change Types Addon -> allows you to change the slots in game (note that doing this will unequip all equipment)

Thank you and goodnight!

---------------------------
No sleep for me

Updated to version 3.1.1

Fixes a bug with switching actors in the equip screen you can switch using left and right (thanks Twilight)
Trickster;243777 wrote:
you set it to one yet however someone needed more than one. and there is your problem
  1 => %w( w w a1 a2 a3 a4 a5 ),
Expand to see the code.
you see that there are two w's therefore two weapons are required and the script will call for the two methods weapon_id and weapon2_id

but well this isn't the case anymore I have removed Weapon_Slots and Armor_Slots, but I am not satisfied with the way I am doing it now, so heads up!
Hmmm... removed 'em. Possibly having the configuration system count the actual number of weapon and/or armor slots.

I'll be waiting. :yes:

Version 3.1.1 of T's system is now available in the downloads section and linked in the first page.

Told ya I was waiting. ;) Beat'cha here.
Can you make a slot for equiping either a weapon or shield cause i'm making a left hand and right hand so could it be possible with this script?
Not now but a lot of people have been bugging me for this, and they have no idea how hard it is to code this. (Trickster defines hard as time-consuming) so wait a while it will be done when it's done.

Updated to Version 3.1.2

Fixes a minor bug in the cursed weapons addon
(Technical info: now the script automatically creates the methods armor(n)_id and weapon(n)_id if they aren't found)


One last thing the version number in the topic is ALWAYS the version of the demo, don't bug me if I forget to update the version number in the DLM as I don't have to reupload a demo directly in the DLM, and I forgot :p
EDIT:: I fixed my problems from this post...

Thank you for your time and effort on this script.
Get the legal version. The illegal translations and cracks are not supported here.
Okay, my new bug is this. I have a BattleMech type suit that my player can put on. It changes him to a new character with the class as Mech. I've tryed to set 5 'hardpoints' to mount weaponry, but even though they are listed as being w3, as i understand you add one to the digit you defined in the hash, but they don't show up. i change them to w2 and they show up but don't equip. What am i doing wrong? Here is the two scripts that i have altered...
Multi-Equip Setup Spoiler
=begin
#==============================================================================
# ●● Multi-Equip + Multi-Attack
#------------------------------------------------------------------------------
# Trickster ([email hidden])
# Version 3.1.2
# Date 7/17/07
# Goto rmxp.org for updates/support/bug reports
#==============================================================================
=end
#--------------------------------------------------------------------------
# ● Begin SDK Log
#--------------------------------------------------------------------------
SDK.log('Multi-Equip', 'Trickster', 3.12, '7/17/07')
#--------------------------------------------------------------------------
# Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.2, [1, 2, 3])
#--------------------------------------------------------------------------
# ● Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.enabled?('Multi-Equip')
 
module Multi_Equip
  #--------------------------------------------------------------------------
  # * Equip Names For Slots for Actors
  #     syntax - actor_id => [names] or %w( names )
  #--------------------------------------------------------------------------
  Actor_Names = {
  1 => %w( Sword Sword Shield Helm Armor/Plate Ring Amulet Head Leg  ),
  2 => %w( Spear Shield Helm Armor/Plate Ring ),
  7 => ['Mace','Hat','Robe','Ring'],
  8 => ['Rod','Hat','Robe','Ring'],
  9 => %w( w2 w2 w2 w2 w2 a8)
  }
  #--------------------------------------------------------------------------
  # * Equip Names For Slots Classes
  #     syntax - class_id => [names] or %w( names )
  #--------------------------------------------------------------------------
  Class_Names = {
  1 => %w( Sword Sword Shield Helm Armor/Plate Ring Amulet Head Leg ),
  2 => %w( Spear Shield Helm Armor/Plate Ring ),
  7 => ['Mace','Hat','Robe','Ring'],
  8 => ['Rod','Hat','Robe','Ring'],
  9 => ['HardPort', 'HardPort', 'HardPort', 'HardPort', 'HardPort', 'Armor']
  }
  #--------------------------------------------------------------------------
  # * Equip Types For Slots
  #     syntax - actor_id = [types]
  #     note - w = weapon an = armor kind n
  #--------------------------------------------------------------------------
  Actor_Types = {
  }
  #--------------------------------------------------------------------------
  # * Equip Types For Slots
  #     syntax - class_id = [types] or %( types )
  #     note - w = weapon an = armor kind n
  #--------------------------------------------------------------------------
  Class_Types = {
  1 => %w( w w a1 a2 a3 a4 a5 a6 a7 ),
  2 => %w( w a1 a2 a3 a4 ),
  7 => ['w', 'a2', 'a3', 'a4'],
  8 => ['w', 'a2', 'a3', 'a4'],
  9 => %w( w2 w2 w2 w2 w2 a8)
  }
  #--------------------------------------------------------------------------
  # * Initial Equipment
  #     syntax - actor_id => {slot id => equip id}
  #--------------------------------------------------------------------------
  Init_Equip = {
  1 => {0=>1, 2=>1, 3=>5, 4=>13},
  2 => {0=>5, 1=>1, 2=>5, 3=>17},
  7 => {0=>25, 1=>9, 2=>21},
  8 => {0=>29, 1=>9, 2=>21}
  }
  #--------------------------------------------------------------------------
  # * Battle Test Equipment
  #     syntax - actor_id => {slot id => equip id}
  #--------------------------------------------------------------------------
  BT_Equip = {
  1 => {0=>4, 1=>2, 2=>1, 3=>5, 4=>13},
  2 => {0=>5, 1=>1, 2=>5, 3=>17},
  7 => {0=>25, 1=>9, 2=>21},
  8 => {0=>29, 1=>9, 2=>21}
  }
  #--------------------------------------------------------------------------
  # * Fixed Equipment
  #     syntax - actor_id => {slot_id => bool}
  #--------------------------------------------------------------------------
  Equip_Fix = {
  }
  #--------------------------------------------------------------------------
  # * Setup All Default Values (Don't Touch)
  #--------------------------------------------------------------------------
  words = SDK::Scene_Commands::DataSystem.words
  #--------------------------------------------------------------------------
  # * Set Class Types Default to Corresponding words for each slot
  #--------------------------------------------------------------------------
  Class_Names.default = words.weapon, words.armor1, words.armor2, words.armor3,
  words.armor4
  #--------------------------------------------------------------------------
  # * Set Class Names Default to The Normal Five Slots
  #--------------------------------------------------------------------------
  Class_Types.default = %( w a1 a2 a3 a4 )
end
#--------------------------------------------------------------------------
#  End SDK Enabled Check
#--------------------------------------------------------------------------
end
Expand to see the code.
Equipment Types Addon Spoiler
=begin
#==============================================================================
# ●● Equipment Types Addon
#------------------------------------------------------------------------------
# Trickster ([email hidden])
# Version 1.0
# Date 7/14/07
# Goto rmxp.org for updates/support/bug reports
#------------------------------------------------------------------------------
# This addon adds more Armor kinds and now Adds Weapon kinds so some equipment
# can only be equipped in a certain slot
#------------------------------------------------------------------------------
# Note: For Customization go back to the main Multi-Equip Script and configure
# Actor_Types and Class_Types. You may now use as the values for this
# wn = weapon kind n, an = armor kind n, w = all weapons, a = all armors.
#==============================================================================
=end
#--------------------------------------------------------------------------
# ● Begin SDK Log
#--------------------------------------------------------------------------
SDK.log('Equipment Types Addon', 'Trickster', 1.0, '7/14/07')
#--------------------------------------------------------------------------
# Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.2, [1, 3], ['Multi-Equip'])
#--------------------------------------------------------------------------
# ● Begin SDK Enabled Check
#--------------------------------------------------------------------------
if SDK.enabled?('Equipment Types Addon')
 
module Multi_Equip
  #--------------------------------------------------------------------------
  # * Weapon_Types
  #   syntax - weapon_id = kind
  #--------------------------------------------------------------------------
  Weapon_Types = {34 => 1,
  36 => 2,
  37 => 2,
  38 => 2,
  }
  #--------------------------------------------------------------------------
  # * Armor_Types
  #   syntax - armor_id = (kind - 1)
  #--------------------------------------------------------------------------
  Armor_Types = {33 => 4,
  35 => 5,
  36 => 6,
  37 => 7,
  }
end

class RPG::Weapon
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :kind
end

class Scene_Title
  #--------------------------------------------------------------------------
  # * Main Database
  #--------------------------------------------------------------------------
  alias_method :trick_multiequip_main_database, :main_database
  def main_database
    # The Usual
    trick_multiequip_main_database
    # Set Default Kind
    $data_weapons.each {|weapon| weapon.kind = 0 if weapon != nil}
    # Run Through Defined Armor Types
    Multi_Equip::Armor_Types.each do |armor_id, kind|
      # Set Kind for armor
      $data_armors[armor_id].kind = kind
    end
    # Run Through Defined Weapon Types
    Multi_Equip::Weapon_Types.each do |weapon_id, kind|
      # Set Kind for weapon
      $data_weapons[weapon_id].kind = kind
    end
  end
end

class Scene_Equip
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Get currently equipped item
    item1 = @right_window.item
    # Get Slot
    slot = @actor.slot_types[@right_window.index]
    # Get Type and Kind of Equipment
    type = slot[0..0]
    kind = slot.size > 1 ? slot[1...slot.size].to_i : -1
    # Set Equip
    @item_window.set_equip(type, kind)
    # If right window is active erase parameters for after equipment change
    @left_window.clear_parameters if @right_window.active
    # Get currently equipped item
    item1 = @right_window.item
    # Return if item window isn't active
    return if not @item_window.active
    # Get currently selected item
    item2 = @item_window.item
    # Change Equipment
    last_hp = @actor.hp
    last_sp = @actor.sp
    @actor.equip(@right_window.index, item2 == nil ? 0 : item2.id)
    # Get parameters for after equipment change
    new_str = @actor.str
    new_dex = @actor.dex
    new_agi = @actor.agi
    new_int = @actor.int
    new_atk = @actor.atk
    new_pdef = @actor.pdef
    new_mdef = @actor.mdef
    new_eva = @actor.eva
    # Return equipment
    @actor.equip(@right_window.index, item1 == nil ? 0 : item1.id)
    @actor.hp = last_hp
    @actor.sp = last_sp
    # Draw in left window
    @left_window.set_new_parameters(new_atk, new_pdef, new_mdef, new_str,
    new_dex, new_agi, new_int, new_eva)
  end
end

class Window_EquipItem
  #--------------------------------------------------------------------------
  # * Set Equip Type
  #--------------------------------------------------------------------------
  def equip_kind=(equip_kind)
    # Return if same
    return if @equip_kind == equip_kind
    # Set new equip kind
    @equip_type = equip_kind
    # Refresh
    refresh
  end
  #--------------------------------------------------------------------------
  # * Set Equip
  #--------------------------------------------------------------------------
  def set_equip(type, kind)
    # Return if same
    return if @equip_kind == kind and @equip_type == type
    # Set New Types
    @equip_type, @equip_kind = type, kind
    # Refresh
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    # Clear Data
    @data.clear
    # Add equippable weapons
    if @equip_type == 'w'
      weapon_set = $data_classes[@actor.class_id].weapon_set
      (1...$data_weapons.size).each do |id|
        if $game_party.weapon_number(id) > 0 and weapon_set.include?(id)
          if $data_weapons[id].kind == @equip_kind or @equip_kind == -1
            @data << $data_weapons[id]
          end
        end
      end
    end
    # Add equippable armor
    if @equip_type == 'a'
      armor_set = $data_classes[@actor.class_id].armor_set
      (1...$data_armors.size).each do |id|
        if $game_party.armor_number(id) > 0 and armor_set.include?(id)
          if $data_armors[id].kind == @equip_kind - 1 or @equip_kind == -1
            @data << $data_armors[id]
          end
        end
      end
    end
    # Add Blank Item
    @data << nil
    # Make a bit map and draw all items
    @item_max = @data.size
    # If Item count is not 0
    if @item_max > 0
      # If Contents is defined and same height
      if self.contents != nil and row_max * 32 == self.contents.height
        # Clear Contents
        self.contents.clear
      else
        # If Contents is Defined Dispose Contents
        self.contents.dispose unless self.contents.nil?
        # Create Bitmap
        self.contents = Bitmap.new(width - 32, row_max * 32)
        # Set Font Size of Window
        self.contents.font.size = 18
      end
      # Draw Items
      (@item_max-1).times {|i| draw_item(i)}
    else
      # If Contents is Defined Dispose Contents
      self.contents.dispose unless self.contents.nil?
      # Create Bitmap
      self.contents = Bitmap.new(width - 32, height - 32)
    end
  end
end
#--------------------------------------------------------------------------
# ● End SDK Enabled Check
#--------------------------------------------------------------------------
end
Expand to see the code.
I think you need to leave the 'w's alone. Apart from the armor, they shold have no numbers next to 'em in your setup. I could be wrong, but if you look at the demo's setup, all the weapons were defined only by 'w'.
No, having a w means any weapon kind. I'm using it, if it will work, to mount 5 weapons and an armor on my mech class. If I can get it to work, I'll not only have a way to do my augmentation, but a HardPoint System... One that lets me define different types of Hardpoints.
@Tdata it should work now
@DerVVulfman - I know you were trying to help and you meant well but if you don't know the answer then it would be better if you didn't post *not trying to be offensive*, thanks for attempting though

Updated to version 3.1.3
Fixes a small bug thanks Mephisto
Fixes an error with the Equipment Types addon thanks Tdata

Updated (Main Script, Non-Hit Addon, and Equipment Types Addon)
Oo...men..i hate say this...but there are another bug...when you use a item with an atributte i get this error (the same that i say you yesterday, but this time is with the armors).

in the game actor part of your script, line 666 (o.O)

super(symbol, *args)

http://img340.imageshack.us/img340/4118/dibujorq7.png[/IMG]
Sorry to bug you ppl, but this is urgent and I'm not at my pc these few days. Does this script work with SephirothSpawn's Equipment Skills?

(I can already here Trickster drilling me about this question but I have to ask anyway. I'd try it myself if I could :/)
While i can now equip to my heart's content, I found a new bug. All the attacks either miss or do 0 damge. Every once and a while the last attack will deal damage but it is after maybe 5 attempts...

I'm still having my bug. ^
Quote:
  • Can add 'Cursed' (unremovable) armors and weapons
  • Can make two-handed weapons
  • Can make weapons that deliver multiple strikes
  • Can set up off-hand weapon values #(what this?)
  • Can make fake Equipment (it change if you equip)
  • use Ammo for some Weapons


can you add this or is this added or must i build a patch?
Tdata;247490 wrote:
While i can now equip to my heart's content, I found a new bug. All the attacks either miss or do 0 damge. Every once and a while the last attack will deal damage but it is after maybe 5 attempts...

I'm still having my bug. ^


Give me time I am already trying to fix it ':|

hanmac;252477 wrote:
can you add this or is this added or must i build a patch?


  • Can add 'Cursed' (unremovable) armors and weapons
  • Can make two-handed weapons
  • Can make weapons that deliver multiple strikes
  • Can set up off-hand weapon values #(what this?)
  • Can make fake Equipment (it change if you equip)
  • use Ammo for some Weapons
Blue is already done
Red is what I plan on adding

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=14046