Ancordia_PRC8/_module/nss/adv_setattack.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

8 lines
293 B
Plaintext

void main()
{
SetLocalInt(GetPCSpeaker(), "TalkedAdv", TRUE);
if (GetLocalInt(OBJECT_SELF, "WillAttack") == 0 && GetAlignmentGoodEvil(OBJECT_SELF) == ALIGNMENT_EVIL && Random(2) == 0)
SetLocalInt(OBJECT_SELF, "WillAttack", 1);
else SetLocalInt(OBJECT_SELF, "WillAttack", 2);
}