Lankhmar_PRC8/_module/nss/walk_away_kimala.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

59 lines
1.5 KiB
Plaintext

#include "nw_i0_generic"
void main()
{
object oActor;
object oTarget;
object oItemToTake;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Have "Kimala" perform a sequence of actions.
oActor = GetObjectByTag("Kimala");
AssignCommand(oActor, ActionPlayAnimation(ANIMATION_LOOPING_DEAD_BACK, 1.0, 6.0));
//
object osaltspider1 = GetObjectByTag("saltspider1");
ChangeToStandardFaction(osaltspider1, STANDARD_FACTION_HOSTILE);
ActionAttack(oPC);
oTarget = GetObjectByTag("saltspider1");
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
//
object osaltspider2 = GetObjectByTag("saltspider2");
ChangeToStandardFaction(osaltspider2, STANDARD_FACTION_HOSTILE);
ActionAttack(oPC);
oTarget = GetObjectByTag("saltspider2");
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
//
object osaltspider3 = GetObjectByTag("saltspider3");
ChangeToStandardFaction(osaltspider3, STANDARD_FACTION_HOSTILE);
ActionAttack(oPC);
oTarget = GetObjectByTag("saltspider3");
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
//
// Destroy an object (not fully effective until this script ends).
DelayCommand(2.0, DestroyObject(GetObjectByTag("sextant")));
// Destroy an object (not fully effective until this script ends).
DelayCommand(5.0, DestroyObject(GetObjectByTag("Kimala")));
}