56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
|
//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));
|
||
|
}
|