#Modifying player's attribute after equipping/unequipping items

3 messages · Page 1 of 1 (latest)

lusty valve
#

Hey, I have some attribute X that is modified by certain items.
I want to apply a global function on X that will apply last everytime such item is equipped/unequipped.
e.g: if item A gives +3X and item B gives +12X, usually the player will have 15X. but if my function is f(x) = x/5 then i want that after the player equips A and B, they'll have only 3X.

worldly swallowBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

royal willow
#

I believe there was an example script for set bonuses a while back, let me see if I can dig it up