Shargast_PRC8/_module/Chapter 2/nss/evil_recognize.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

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