Hi, sorry for late reply and a late revive
The idea is simple but is quite limited.
inside:AttrCalculate function Creat_Item():
this will set up attrs to be editable.
if GetItemID(item) == *YOUR_RING_ID then
Add_Item_Attr(ITEMATTR_VAL_STR, 0)
Add_Item_Attr(ITEMATTR_VAL_CON, 0)
Add_Item_Attr(ITEMATTR_VAL_AGI, 0)
Add_Item_Attr(ITEMATTR_VAL_STA, 0)
Add_Item_Attr(ITEMATTR_VAL_DEX, 0)
end
now to edit stats, i'm sure you already know:
using:
SetItemAttr(*PLAYER_SLOT, *STAT, *STAT_NUM)
to make this even possible, inside iteminfo.txt
the equipment must have the necessary attributes of STR/CON/AGI/DEX/STA:
0,100 0,100 0,100 0,100 0,100
- when the item is created, 0 goes to all stats
- when the item is upgraded, the maximum number each stat can accumulate is 100. (note these variables can be editable to your likings)
I will check thoroughly how we can add other types of equipments, but for now it is limited to just a few itemtypes,
IIRC, rings-fairies-medals/ and some other ones.