I made a relic item for my game. A magic scull that gives +15 Blade just by having it in my inventory. To make that i used the following script.
scriptname BookofBlade5
ref target
short activator
begin gamemode
set target to getcontainer
end
begin onadd
target.modactorvalue2 blade 5
message "Blade +5"
end
begin ondrop
target.modactorvalue2 blade -5
message "Blade -5"
end
that works fine.
The problem i encounter is that if i want to give this item to one of my companions, they dont get the bonus "blade+15"
I understand that the onadd and especially ondrop is not the proper block for that.
Can you plz tell me what i can put there? (onequip - onunequip) cannot be used because the "scull" is not equipable.
Btw i use Toaster Share Recruit for my inventory share,
Thanks