Initial Commit
Initial Commit
This commit is contained in:
7
_module/nss/adv_setattack.nss
Normal file
7
_module/nss/adv_setattack.nss
Normal file
@@ -0,0 +1,7 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user