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
   ATOA CBS Equipment Set Variables Patch kyonides 0 201 10-14-2024, 12:47 AM
Last Post: kyonides
   The Wanderers: The Customizable Encounters System DerVVulfman 0 264 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Angie's Equipment Sets DerVVulfman 3 9,480 08-04-2024, 01:44 AM
Last Post: DerVVulfman
   Super Simple Vehicle System - Enhanced DerVVulfman 65 94,819 06-02-2023, 06:16 PM
Last Post: Sujabes467
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 2,850 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,900 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Charlie's Mini-Map Extended DerVVulfman 16 16,420 09-02-2020, 03:49 AM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 14,323 01-04-2020, 12:37 AM
Last Post: Pelip
   KItemDesc XP Zilsel Version kyonides 4 7,719 12-01-2019, 06:11 AM
Last Post: kyonides
   ACBS - Atoa Custom Battle System 3.2 Victor Sant 150 255,883 03-02-2019, 04:47 AM
Last Post: dragonprincess44



Users browsing this thread: 22 Guest(s)