73 lines
2.3 KiB
Plaintext
73 lines
2.3 KiB
Plaintext
#include "nw_i0_generic"
|
|
|
|
void main()
|
|
{
|
|
object oTarget;
|
|
effect eVFX;
|
|
|
|
// Get the PC who is in this conversation.
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Have "BloatedCreaturex" say something.
|
|
AssignCommand(GetObjectByTag("BloatedCreaturex"), SpeakString("Curse you and your descendants, and may Lankhmar collaps and and be forgotten!"));
|
|
|
|
// Destroy an object (not fully effective until this script ends).
|
|
|
|
eVFX = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_2);
|
|
oTarget = GetObjectByTag("BloatedCreaturex");
|
|
DelayCommand(0.5, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oTarget));
|
|
DelayCommand(0.5, DestroyObject(oTarget, 1.5));
|
|
|
|
//SavageWereratx5
|
|
object oSavageWereratx5 = GetObjectByTag("SavageWereratx5");
|
|
|
|
ChangeToStandardFaction(oSavageWereratx5, STANDARD_FACTION_HOSTILE);
|
|
|
|
// Attack the PC.
|
|
SetIsTemporaryEnemy(oPC, GetNearestObjectByTag("SavageWereratx5"));
|
|
AssignCommand(GetNearestObjectByTag("SavageWereratx5"), DetermineCombatRound(oPC));
|
|
|
|
|
|
//SavageWereratx4
|
|
object oSavageWereratx4 = GetObjectByTag("SavageWereratx4");
|
|
|
|
ChangeToStandardFaction(oSavageWereratx4, STANDARD_FACTION_HOSTILE);
|
|
|
|
// Attack the PC.
|
|
SetIsTemporaryEnemy(oPC, GetNearestObjectByTag("SavageWereratx4"));
|
|
AssignCommand(GetNearestObjectByTag("SavageWereratx4"), DetermineCombatRound(oPC));
|
|
|
|
|
|
//SavageWereratx3
|
|
object oSavageWereratx3 = GetObjectByTag("SavageWereratx3");
|
|
|
|
ChangeToStandardFaction(oSavageWereratx3, STANDARD_FACTION_HOSTILE);
|
|
|
|
// Attack the PC.
|
|
SetIsTemporaryEnemy(oPC, GetNearestObjectByTag("SavageWereratx3"));
|
|
AssignCommand(GetNearestObjectByTag("SavageWereratx3"), DetermineCombatRound(oPC));
|
|
|
|
|
|
//SavageWereratx2
|
|
object oSavageWereratx2 = GetObjectByTag("SavageWereratx2");
|
|
|
|
ChangeToStandardFaction(oSavageWereratx2, STANDARD_FACTION_HOSTILE);
|
|
|
|
// Attack the PC.
|
|
SetIsTemporaryEnemy(oPC, GetNearestObjectByTag("SavageWereratx2"));
|
|
AssignCommand(GetNearestObjectByTag("SavageWereratx2"), DetermineCombatRound(oPC));
|
|
|
|
//SavageWereratx1
|
|
object oSavageWereratx1 = GetObjectByTag("SavageWereratx1");
|
|
|
|
ChangeToStandardFaction(oSavageWereratx1, STANDARD_FACTION_HOSTILE);
|
|
|
|
// Attack the PC.
|
|
SetIsTemporaryEnemy(oPC, GetNearestObjectByTag("SavageWereratx1"));
|
|
AssignCommand(GetNearestObjectByTag("SavageWereratx1"), DetermineCombatRound(oPC));
|
|
|
|
oTarget = GetObjectByTag("wlb11");
|
|
|
|
DestroyObject(oTarget, 4.0);
|
|
}
|