30 lines
533 B
Plaintext
30 lines
533 B
Plaintext
|
/* Script generated by
|
||
|
Lilac Soul's NWN Script Generator, v. 2.3
|
||
|
|
||
|
For download info, please visit:
|
||
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||
|
|
||
|
//Goes OnPerceived of a creature
|
||
|
#include "nw_i0_generic"
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetLastPerceived();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
if (!GetLastPerceptionSeen()) return;
|
||
|
if (GetAlignmentGoodEvil(oPC) != ALIGNMENT_EVIL)
|
||
|
return;
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = OBJECT_SELF;
|
||
|
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
|
||
|
ActionAttack(oPC);
|
||
|
|
||
|
DetermineCombatRound(oPC);
|
||
|
|
||
|
}
|