I don't see the point? If you wanted you could do custom functions to represent the same thing (if that's what you're going for...)
HTML Code:
public function onHealPlayer(amount) {
this.hearts += temp.amount;
triggerclient("weapon", "weaponname", "updateHP", temp.amount);
}
public function onAddMoney(amount) {
this.rupees += temp.amount;
//yada
}