If you want a script to run on a piece of equipment when it is equipped, and affect the actor that has it equipped, you'll want to use a structure like this:
int bEquippedref rContainerBegin OnEquip set bEquipped to 1 set rContainer to GetContainerEndBegin GameMode if bEquipped ; Do stuff using rContainer endifEndBegin OnUnequip set bEquipped to 0End
There is no way to determine which weapon an actor has been hit with. The closest you can get is having separate http://geck.gamesas.com/index.php/OnHitWith blocks for a series of weapons, but that's only appropriate if you want to check for a few different weapons.
If you want to restore damage that is done to an actor, then you'll need to track their health in a http://geck.gamesas.com/index.php/GameMode block so you can detect when it changes.
Cipscis