Take a look at something similar in the core rules that require something to be active.
For example the Magic items that grant bonuses have scripts that apply if equipped and not just carried!
Spell adjustments that only apply if active!
You might be able to cobble something together that works for your item!
|