Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

68 lines
1.3 KiB
Plaintext

#include "nw_i0_generic"
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
//Put this OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
CreateItemOnObject("nw_it_gem005", oPC);
object oTarget;
object oSpawn;
oTarget = oPC;
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_mepsteam", GetLocation(oTarget));
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = oPC;
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_mepwater", GetLocation(oTarget));
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = oPC;
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "nw_mepice", GetLocation(oTarget));
oTarget = oSpawn;
SetIsTemporaryEnemy(oPC, oTarget);
AssignCommand(oTarget, ActionAttack(oPC));
AssignCommand(oTarget, DetermineCombatRound(oPC));
oTarget = oPC;
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ICESTORM), GetLocation(oTarget));
}