$D13x Unique Equipment

#===============================================================================
# β˜† Introduction
#——————————————————————————-
# This script is what makes every item unique, without this the Equipment
# part of the $D13x system would be FULL of errors, faults and glitches !!
# This script has 0 customisation options.
#
# NOTE :
# I HIGHLY Reccommend you to NOT have any actor wearing any equipment at
# the beggining of the game, if needbe, create all items after starting the game
# and add them to the actor via script calls.
# This will likley avoid glitches with multiple save files and potential errors.
#
Script Link

20 thoughts on “$D13x Unique Equipment

  1. Joseph jack says:

    Script error ” script ‘dx13-unique equipment ‘ line 163 :type error occurred can’t convert NilClass into Color.

    1. Dekita-RPG says:

      what additional scripts are you using ?
      this error would only pop up if you where using some kind of script to give color to equipment in some way – maybe the text names or icon or something.
      If you arent using any other scripts, please give me a step by step guide to how this happened and I will look into it further πŸ™‚

  2. Dekita-RPG says:

    Ok, in order for me to fix these issues, I will need a detailed description of how the error has occurred.
    Please tell me how this happened, when and anything else you feel will help and I will look into it asap πŸ™‚

    Unfortunately, the current information is no where near enough to isolate the issue. :/

  3. joseph jack says:

    okay with just yours and yanflys have nothing equipped on the toon., than i make 500 weapons and 750 armors i put weapon id 12 which is a iron sword . armor id 10 which is a Bronze shield. Armor id 40 which is iron platemail. Armor id 60 which is iron bracers. Armor id 95 which is Leather boots. games goes fine till you open the box and wola error line 163 the funny thing is even if i delete yanflys script for extra gear the error will still show up every play thru :-). just make another armor and weapon and u to will see the error depending on how it goes on any treasure box using basic event treasure add of item. πŸ™‚

    1. Dekita-RPG says:

      So you are saying there is a fault with the normal ‘add item’ / ‘add weapon’ and ‘add armor’ event tabs? That makes it error when you gain [x] amount of items ?

      Why not use the script calls within the script to add your weapons and armors ?

  4. Nyne says:

    Error on line 166, can’t clone symbol
    Appears when ever equipment is added to the inventory by an npc or from a chest.
    Also, equipment does drop from enemies but it is stacked and not unique.

  5. Juliosan (@Juliosssan) says:

    Hi, i’m having the Script error ” script β€˜dx13-unique equipment β€˜ line 163 :type error occurred can’t convert NilClass into Color.” Aswell and did nothing but to download your master demo. Is there anything I need to know about it that I’m missing?

  6. Nyne says:

    Hi again, I’m using Falcao Pearl ABS Liquid V3 for my game. When I try to equip a unique equip from the quick equip menu in the ABS it doesn’t work but it does from the regular equip menu. Is there a way to fix this?

    1. Dekita-RPG says:

      Sorry I’m not familiar with falcaos equipment scene. Also not really prone to making compatibility between other scripters scripts :/

      What exactly happens when you try to equip a unique equip from the falcao equip scene?

  7. Nyne says:

    The issue was that the weapon didn’t equip but it’s okay because I’ve found a replacement script for this.

  8. Ashyra moonwolf says:

    Hi, i try to use your script, but always that shitting error 163! I disable able, all my other script, and othing, i try to see something directly on your one, and the problem is: Even without change anything, just go on script, click ok, and changing the starting emplacement, error 163 occure! But when i launch your demo directly without edit her, she works….. That likely the weirdest issues i have ever seen….

    1. Dekita-RPG says:

      error 163? You mean you are getting an error at line 163?
      Line 163 should be this…

      vi[id].instance_variable_get(var) == nil ? nil :

      and that shouldnt throw any errors :/

      You do have the $D13x core script installed yea?
      Also – a screenshot of the error would help greatly πŸ™‚

  9. Ashyra moonwolf says:

    that’s this! i use your core for the stat system! and i (now for kill to! thx about it by the way^^)! the more strangee is: the bug canbe made with your demo! i change the start point of team (to avoid the first video) and i open the script window, don’t change anything (always with your demo, not my game) press ok, launch demo… and then error line 163 before i can enter in the game…..

  10. Dekita-RPG says:

    Hmm, that is a strange bug. Try adding these two lines…

    vi[id].instance_variable_get(var).is_a?(Color) ?
    vi[id].instance_variable_get(var).clone :

    So that the code at line 163 looks like this…

    val = vi[id].instance_variable_get(var).is_a?(Numeric) ?
    vi[id].instance_variable_get(var) :
    vi[id].instance_variable_get(var).is_a?(Color) ?
    vi[id].instance_variable_get(var).clone :
    vi[id].instance_variable_get(var) == nil ? nil :
    vi[id].instance_variable_get(var) == true ? true :
    vi[id].instance_variable_get(var) == false ? false :
    vi[id].instance_variable_get(var).clone
    new.instance_variable_set(var, val)

    I quickly tested and that seemed to stop the error. Let me know if you run into any other issues πŸ™‚

  11. Hisuma says:

    Hello Dekita πŸ™‚ i have a “little” problem with this script. im useing your CORE script, EQ lvling and this one. and a few more from you.
    my Problem is i cannot remove Weopen/armor from a Actor.
    with the default seting change weopen/armor -X its only removes from invetory. but impossible to remove if its on the actor.
    i tryed with the script call in put inside. change_eqp_to_this(actor_id, slot_id, item_id)
    —> change_eqp_to_this(1, 0, 2) tryed to go around it. change item and remove it than. but if i script call it. i get an error :

    undefined method ‘change_equip_by_id_and_teir’ for #

    do im something wrong ? is there other ways to remore EQ from an Actor ?
    with this its impossible to force the player to lose Weopen X and armor Y :p
    hope you can help πŸ˜€

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s