This is an incredibly basic draft. You may want to do a lot more than this, but it gets the job done.
void main()
{
object oPC = GetLastAttacker();
object oGuard = GetNearestObjectByTag("Guard");
AssignCommand(oGuard, ClearAllActions());
AssignCommand(oGuard, ActionSpeakString("You asked for it!"));
AssignCommand(oGuard, ActionAttack(oPC));
}
Modifié par Squatting Monk, 14 juin 2013 - 11:21 .