Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Equipment Upgrade System by Charlie Fleed, Version 1.2
#10
I highlighted the changes in red, maybe you made some error replacing the old code with the new 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

Are you getting an error? When?

Quote:How do I make it so that when the enhancement is removed, it is gone forever + a confirmation window for it?

You need a different script, this one can't do it (now) :D
Just out of curiosity, why do you need something like this?
Reply }


Messages In This Thread
Customizable (Enhanced) Equipment by Charlie Fleed, Version 1.0 - by Charlie Fleed - 03-15-2009, 01:21 PM

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



Users browsing this thread: