function PlayerData::onDamage(%this, %obj, %delta) { if(%delta > 0) %obj.say("ouch!", %this.voice); }