WoR_PRC8/_module/nss/act_monspwninatk.nss

56 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 11:49:34 -04:00
//Put this on action taken in the conversation editor
#include "nw_i0_generic"
void main()
{
object oPC = GetPCSpeaker();
if (GetLocalInt(oPC, "MOSSPISS")== 10)
{
object oTarget;
oTarget = OBJECT_SELF;
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HORRID_WILTING), oPC);
object oSpawn;
location lTarget;
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_ochrejellymed", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
}
else AdjustAlignment(oPC, ALIGNMENT_EVIL, 1);
SetLocalInt(oPC, "MOSSPISS", 10);
object oTarget;
oTarget = OBJECT_SELF;
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HORRID_WILTING), oPC);
object oSpawn;
location lTarget;
oTarget = oPC;
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_ochrejellymed", lTarget);
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
}