Files
HeroesStone_PRC8/_module/nss/castevil.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

63 lines
1.5 KiB
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this on action taken in the conversation editor
void main()
{
object oPC = GetPCSpeaker();
object oCaster;
oCaster = GetObjectByTag("Lanfear");
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastFakeSpellAtObject(SPELL_INFLICT_MODERATE_WOUNDS, oTarget, PROJECTILE_PATH_TYPE_DEFAULT));
while (GetIsObjectValid(GetMaster(oPC)))
{
oPC=GetMaster(oPC);
}
if (!GetIsPC(oPC)) return;
object pTarget;
location lTarget;
pTarget = GetWaypointByTag("WP_wander1_01");
lTarget = GetLocation(pTarget);
//only do the jump if the location is valid.
//though not flawless, we just check if it is in a valid area.
//the script will stop if the location isn't valid - meaning that
//nothing put after the teleport will fire either.
//the current location won't be stored, either
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
oTarget=GetFirstFactionMember(oPC, FALSE);
while (GetIsObjectValid(oTarget))
{
// AssignCommand(oTarget, ActionWait(2.0f));
// AssignCommand(oTarget, ClearAllActions());
// AssignCommand(oTarget, ActionJumpToLocation(lTarget));
// oTarget=GetNextFactionMember(oPC, FALSE);
DelayCommand(1.4f, AssignCommand(oTarget, ClearAllActions()));
DelayCommand(1.5f, AssignCommand(oTarget, ActionJumpToLocation(lTarget)));
oTarget=GetNextFactionMember(oPC, FALSE);
}
}