46 lines
925 B
Plaintext
46 lines
925 B
Plaintext
|
#include "nw_i0_generic"
|
||
|
object oTarget;
|
||
|
/* Script generated by
|
||
|
Lilac Soul's NWN Script Generator, v. 1.5
|
||
|
|
||
|
For download info, please visit:
|
||
|
http://www.lilacsoul.revility.com */
|
||
|
|
||
|
//Goes OnPerceived of a creature
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastPerceived();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (!GetLastPerceptionSeen()) return;
|
||
|
if (GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL)
|
||
|
{
|
||
|
oTarget = OBJECT_SELF;
|
||
|
|
||
|
AdjustReputation(oPC, oTarget, -100);
|
||
|
|
||
|
oTarget = OBJECT_SELF;
|
||
|
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
// -seeker- alterations in the following
|
||
|
int hasSpoken = GetLocalInt( oPC, "XymHasSpoken" );
|
||
|
if (!hasSpoken)
|
||
|
{
|
||
|
SetLocalInt( oPC, "XymHasSpoken", TRUE );
|
||
|
ActionSpeakString("The glory of Light, the splendor of innosense.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|