generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
12
_module/nss/x2_at_guard407.nss
Normal file
12
_module/nss/x2_at_guard407.nss
Normal file
@@ -0,0 +1,12 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nSpell = SPELL_FEAR;
|
||||
SetLocalInt(OBJECT_SELF,"X2_SPECIAL_COMBAT_AI_SCRIPT_OK", 1);
|
||||
AssignCommand(oPC, ActionCastFakeSpellAtObject(nSpell, OBJECT_SELF));
|
||||
DecrementRemainingSpellUses(oPC, nSpell);
|
||||
object oHide = GetItemPossessedBy(OBJECT_SELF, "q4_GolemArmor");
|
||||
int nCurrentSlot = GetLocalInt(OBJECT_SELF, "CURRENT_SLOT");
|
||||
SetLocalInt(GetModule(), "X2_GOLEM_SPELL_SLOT" + IntToString(nCurrentSlot), nSpell);
|
||||
SetLocalInt(GetModule(), "X2_GOLEM_SPELL_SLOT_TARGET_TYPE" + IntToString(nCurrentSlot), 0);
|
||||
}
|
||||
Reference in New Issue
Block a user