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

56 lines
1.9 KiB
Plaintext

#include "nw_i0_generic"
void main()
{
object oTarget;
effect eVFX;
object oSpawn;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Have "Nerkaox" say something.
AssignCommand(GetObjectByTag("Nerkaox"), SpeakString("Inrik, I am done letting your vengeance consume me!"));
// Unlock and open "nerkdr2".
oTarget = GetObjectByTag("nerkdr2");
SetLocked(oTarget, FALSE);
AssignCommand(oTarget, ActionOpenDoor(oTarget));
// Inrik goes hostile and attacks
object oInrikox = GetObjectByTag("Inrikox");
ChangeToStandardFaction(oInrikox, STANDARD_FACTION_HOSTILE);
// ActionAttack(oPC);
// oTarget = GetObjectByTag("Inrikox");
// SetIsTemporaryEnemy(oPC, oTarget);
// AssignCommand(oTarget, ActionAttack(oPC));
// AssignCommand(oTarget, DetermineCombatRound(oPC));
// Spawn some critters.
eVFX = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_1);
oTarget = GetWaypointByTag("WP_Inrox1");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hellhoundhunter", GetLocation(oTarget));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hellhoundhunter", GetLocation(oTarget));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hellhoundhunter", GetLocation(oTarget));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
// Destroy objects (not fully effective until this script ends).
eVFX = EffectVisualEffect(VFX_FNF_SMOKE_PUFF);
oTarget = GetObjectByTag("Nerkaox");
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
DestroyObject(oTarget, 3.0);
DelayCommand(3.1, DestroyObject(GetObjectByTag("Nerka22")));
DelayCommand(3.1, DestroyObject(GetObjectByTag("Inrik2zx")));
}