46 lines
907 B
Plaintext
46 lines
907 B
Plaintext
//Goes OnPerceived of a creature
|
|
|
|
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetLastPerceived();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (!GetLastPerceptionSeen()) return;
|
|
if (GetItemPossessedBy(oPC, "UzoArmor")!= OBJECT_INVALID)
|
|
{
|
|
ActionSpeakString("Hello, Sir.");
|
|
|
|
}
|
|
else if (GetItemPossessedBy(oPC, "UzoArmor")== OBJECT_INVALID)
|
|
{
|
|
ActionSpeakString("Hello Bastard.");
|
|
|
|
}
|
|
|
|
else if (GetItemPossessedBy(oPC, "RuneKnightArmor")!= OBJECT_INVALID)
|
|
{
|
|
ActionSpeakString("Hello Fellow Rune Knight.");
|
|
|
|
}
|
|
else if (GetItemPossessedBy(oPC, "RuneKnightArmor")== OBJECT_INVALID)
|
|
{
|
|
ActionSpeakString("Die Guardiana Scum!");
|
|
|
|
object oTarget = OBJECT_SELF;
|
|
|
|
AdjustReputation(oPC, oTarget, -100);
|
|
|
|
oTarget = OBJECT_SELF;
|
|
|
|
SetIsTemporaryEnemy(oPC, oTarget);
|
|
|
|
AssignCommand(oTarget, ActionAttack(oPC));
|
|
|
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
|
|
|
}
|
|
} |