For kids nask
NPC Answers attack
Code:
EventHandler ATTACKED(attacker, damage)
{
AddAttackDesire(attacker, @AMT_MOVE_TO_TARGET, 2000);
}
NPC Sees karma and beats the player
Code:
EventHandler SEE_CREATURE(creature)
{
if(creature.karma > 0)
{
AddAttackDesire(creature, @AMT_MOVE_TO_TARGET, 1500);
}
}