Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Equipment Upgrade System by Charlie Fleed, Version 1.2
#78
Let's say you have a "Magic Shepter" as an enhanced weapon in the database with id= 45, and you give your party exactly one with the "Change Weapons..." event command. The system clones the weapon and gives the party a "Magic Shepter" with a new id, and, at the same time, sets an internal variable within the newly created weapon, the ref_id, with the value of the prototype weapon's id from which it was created.
Moreover, the new weapon is stored within the @enhanced_weapons array of the $game_party object.
Let's also assume that the two gems are enhancements for weapons (that is they are weapons too), with ids 61 and 62.
At this point a script can be used to test if a specific weapon enhanced has the two specified enhancements attached.

Code:
class Interpreter
  def change_to_key?
    result = false
    for weapon in $game_party.enhanced_weapons
      if weapon.ref_id == 45 # This is the "clone" of the Magic Shepter
        if weapon.accessories.has_value?($data_weapons[61]) and weapon.accessories.has_value?($data_weapons[62])
          return true
        end
      end
    end
  end
end

A call to this script can be used within a "Conditional Branch..." event command. On the fourth page, within the Script field, you just have to put change_to_key? as the condition. The rest is up to you.

You can do the same with armors of course. I guess you could want to set the scepter and the gems as accessories in the database...
Reply }


Messages In This Thread
Customizable (Enhanced) Equipment by Charlie Fleed, Version 1.0 - by Charlie Fleed - 02-26-2010, 09:04 AM

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,536 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: