#===============================================================================
# β 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
Script error ” script ‘dx13-unique equipment ‘ line 163 :type error occurred can’t convert NilClass into Color.
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 π
Error on line 166, can’t clone symbol
only your scripts +yanfly equip script to have more item slots. π
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.
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. π
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 ?
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.
Ahh ok, I see the issue now. I will get a fix done for that asap π
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?
Did you copy the core script along with any other stat related scripts that the equip script requires?
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?
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?
The issue was that the weapon didn’t equip but it’s okay because I’ve found a replacement script for this.
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….
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 π
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…..
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 π
That work for me! thx^^ Should be ok, i’ll tell you if i found other issues^^
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 π