Lankhmar_PRC8/_module/nss/cnv_dsty_hsvt2b.nss

57 lines
2.2 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "nw_i0_generic"
void main()
{
object oSpawn;
object oTarget;
effect eVFX;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Have "Hisvet1wlb" say something.
AssignCommand(GetObjectByTag("Hisvet1wlb"), SpeakString("I shall have you one way or another."));
// Spawn some critters.
eVFX = EffectVisualEffect(VFX_IMP_POLYMORPH);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oPC));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn));
// Spawn "generalskith".
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "generalskith", GetLocation(oPC));
// Destroy an object (not fully effective until this script ends).
eVFX = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_2);
oTarget = GetObjectByTag("Hisvet1wlb");
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget);
DestroyObject(oTarget, 3.0);
}