
Is there a way to:
1. Hinder spellcasting and attacking while said item is picked up in cursor?
2. Slow down movement of party (like encumbered) while item is in cursor?
3. Make the item only be carriable with 4 party members alive and enabled?
onUseItem: a hook which is called when an item is used by clicking on an attack icon, right clicking on an inventory item or clicking a champion’s portrait while holding a mouse item. The function gets the following parameters: the champion who uses the item, the item to use and the numeric inventory slot. The slot parameter is nil if the a champion portrait was clicked. If the function returns false, the action is cancelled.
Maybe you could use these in combination with getMouseItem()? Check the mouse item in those hooks, if it is your heavy thing, return false? maybe even print "you cant do that while carrying this big thing"onCastSpell: a hook which is called when a champion casts a spell. The function gets two parameters, the casting champion and the name of the spell. If the function returns false, the casting is cancelled.
which you could use to set a flag to know when the thing is being held. The problem here is i cant figure out how to clear the flag when the item is dropped....onPickUpItem: a hook which is called when an item is picked up. The function gets two parameters, the party itself and the item. If the function returns false, the pick up action is cancelled.