Galv Magic Shard - Restricted/Unique Shard Request

Discussion in 'RGSS3 Script Requests' started by Fireworker, Dec 9, 2018.

  1. Fireworker

    Fireworker Veteran Veteran

    Messages:
    120
    Likes Received:
    115
    Location:
    Montreal
    First Language:
    English
    Primarily Uses:
    RMMV
    I have been working with Galv's Magic Shards for a while now, and it's been a blast.

    However, I'm looking for a way to add a notetag/trait to the Weapons/Armors I use for Shards to make it so you can only have one of that particular trait.

    For example, if you equipped a Shard with Trait A you couldn't equip a second shard with Trait A.

    Trying to get the Shard system to replace Equipments, and this way I could have Weapon/Armor Shards and the rest be Accessories/Skills.

    Thanks in advance to anyone who can help out!
     
    #1
  2. A-Moonless-Night

    A-Moonless-Night WINTER IS COMING Veteran

    Messages:
    520
    Likes Received:
    370
    Location:
    New Zealand
    First Language:
    English
    Primarily Uses:
    RMVXA
    Here you are:
    Code:
    =begin
    
    Use the following notetag in the item's notebox to designate a unique shard:
    <unique_shard>
    
    =end
    class Window_OrbItems < Window_ItemList
      def enable?(item)
        return false if item.nil?
        return false if @actor.shards.empty?
        return false if @actor.shards.include?(item) && item.note.include?('<unique_shard>')
        true
      end
    end
     
    #2
    Uzuki likes this.
  3. Fireworker

    Fireworker Veteran Veteran

    Messages:
    120
    Likes Received:
    115
    Location:
    Montreal
    First Language:
    English
    Primarily Uses:
    RMMV
    Big thanks A-Moonless-Night! Going to give it a quick shot as soon as I'm home!
     
    #3

Share This Page