Battledale_PRC8/_module/nss/jw_androsdr_ope.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

30 lines
958 B
Plaintext

void main()
{
SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK);
object oAttacker = GetLastOpenedBy();
object oTarget = GetFirstObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_COLOSSAL, GetLocation(OBJECT_SELF), TRUE, OBJECT_TYPE_CREATURE);
//Cycle through the targets within the spell shape until an invalid object is captured.
while (GetIsObjectValid(oTarget))
{
if (GetStandardFactionReputation(STANDARD_FACTION_HOSTILE,oTarget)> 60)
{
// * Make anyone who is a member of my faction hostile if I am violated
//SetIsTemporaryEnemy(oAttacker,oTarget);
AssignCommand(oTarget, ActionAttack(oAttacker));
}
oTarget = GetNextObjectInShape(SHAPE_SPHERE, RADIUS_SIZE_COLOSSAL, GetLocation(OBJECT_SELF), TRUE, OBJECT_TYPE_CREATURE);
}
AssignCommand(oAttacker,PlaySound("sim_shadeshield"));
DelayCommand(40.0,ActionCloseDoor(OBJECT_SELF));
}