Christopher25
Member
Hi,
I should make a forum post that you do not forget that topic.
Here is my problem.
I created a category "RingL" and "RingR" and a parent Category with only "Ring". My ItemDefinitions inherit from "Ring" and I want to equip it in two slots which are based on "RingL" and "RingR". But in "ItemViewSlot:210" it will return false because of the automatically attached script at runtime. The inherit-checkbox in the Restriction-script only checks the children so it cannot be true.
Also a Dual Wild setup where one slot can contain a shild or a weapon cannot be realized.
For Example:
I create a "EQ_Primary" and a "EQ_Secondary" Category and I inherit the Primary by Weapon but Secondary should have parents like Weapon and Shield.
But when I would set the Restriction to Secondary-CategoryType I cannot attach a Weapon nor a Shield to it because it do not look to its parent it only looks down.
I guess it would help to check if the any script based on "ItemViewSlotRestriction"-class is already assigned or not before attach a default script to it?
btw. If you have a "equip"-action but the item has no correct itemVIewSlot where it can be equiped to, then the item will be removed. (If everything is correctly setup it wouldnt happened, but I would recommend to check everything before removing
I should make a forum post that you do not forget that topic.
Here is my problem.
I created a category "RingL" and "RingR" and a parent Category with only "Ring". My ItemDefinitions inherit from "Ring" and I want to equip it in two slots which are based on "RingL" and "RingR". But in "ItemViewSlot:210" it will return false because of the automatically attached script at runtime. The inherit-checkbox in the Restriction-script only checks the children so it cannot be true.
Also a Dual Wild setup where one slot can contain a shild or a weapon cannot be realized.
For Example:
I create a "EQ_Primary" and a "EQ_Secondary" Category and I inherit the Primary by Weapon but Secondary should have parents like Weapon and Shield.
But when I would set the Restriction to Secondary-CategoryType I cannot attach a Weapon nor a Shield to it because it do not look to its parent it only looks down.
I guess it would help to check if the any script based on "ItemViewSlotRestriction"-class is already assigned or not before attach a default script to it?
btw. If you have a "equip"-action but the item has no correct itemVIewSlot where it can be equiped to, then the item will be removed. (If everything is correctly setup it wouldnt happened, but I would recommend to check everything before removing