Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Equipment Upgrade System by Charlie Fleed, Version 1.2
#8
In the script page Enhanced Weapons, change the gain_weapon method with this one:
Code:
def gain_weapon(weapon_id, n, slots=nil)
    #print("gain weapon("+weapon_id.to_s+","+n.to_s+")")
    # arma e non nessun arma
    if weapon_id > 0
      # l'arma appartiene al database
      if weapon_id < @max_database_weapon_id + 1
        # l'arma è di tipo enhanceable
        if $data_weapons[weapon_id].element_set.include?($ew_element_id)
          if n>0
            for i in 1..n
              new_weapon=Enhanced_Weapon.new(weapon_id)
              if slots!=nil
                for i in 0...[new_weapon.slots,slots.length].min
                  new_weapon.add_accessory(i,$data_weapons[slots[i]])
                end
              end
              @enhanced_weapons[new_weapon.id]=new_weapon
              $data_weapons[new_weapon.id]=new_weapon
              @weapons[new_weapon.id] = 1
              # Patch for GUILLAUME777's Multi-Slot
              if MULTI_SLOT_PATCH
                RPG.initialized_item_types=false
                RPG.set_new_item_types
              end
            end
            return
          else
            # print("non si può togliere un'arma enhanced perchè non se ne entra mai in possesso")
            return
          end
        end
      # l'arma è di tipo enhanced
      else
        @weapons[weapon_id] = [[weapon_number(weapon_id) + n, 0].max, 99].min
        return
      end
    end
    ew_gain_weapon(weapon_id, n)
  end

then, to add a weapon with slots filled use a script command like this one:

$game_party.gain_weapon(153,1,[146,...])

153 is the ID of the weapon
1 is the quantity
[146,...] is an array containing the IDs of the enhancements. You can also fill, say, only one slot in a 4-slots weapon, in this case just use [146].

Finally, equipped weapons do show up in the enhance scene (the name of the actor that's using the weapon appears next to the weapon's name).
Reply }


Messages In This Thread
Customizable (Enhanced) Equipment by Charlie Fleed, Version 1.0 - by Charlie Fleed - 03-15-2009, 05:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Super Simple Vehicle System - Enhanced DerVVulfman 65 82,888 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Equipment TP Reset ACE kyonides 0 926 11-01-2022, 10:47 PM
Last Post: kyonides
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,017 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,023 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Charlie's Mini-Map Extended DerVVulfman 16 12,680 09-02-2020, 03:49 AM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 12,034 01-04-2020, 12:37 AM
Last Post: Pelip
   KItemDesc XP & VX Zilsel Version kyonides 4 6,528 12-01-2019, 06:11 AM
Last Post: kyonides
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 224,166 03-02-2019, 04:47 AM
Last Post: dragonprincess44
   DerVV's Simple Popup System DerVVulfman 4 10,939 10-08-2017, 04:53 PM
Last Post: DerVVulfman
   H-Mode7 Visual Equipment Chaotech Games 8 34,779 03-30-2017, 01:58 AM
Last Post: wrathx



Users browsing this thread: