Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

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));
}
}