PRC8/nwn/nwnprc/trunk/epicspellscripts/run_gemcage_gem.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

36 lines
1.2 KiB
Plaintext

//:://////////////////////////////////////////////
//:: FileName: "run_gemcage_gem"
/* Purpose: This will uncage the creature associated with the particular gem.
*/
//:://////////////////////////////////////////////
//:: Created By: Boneshank
//:: Last Updated On: March 12, 2004
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "nw_i0_generic"
void main()
{
object oItem = GetItemActivated();
object oCre;
string sName = GetLocalString(oItem, "sNameOfCreature");
string sRef = GetLocalString(oItem, "sCagedCreature");
if (PRCGetSpellTargetObject() == OBJECT_SELF)
{
FloatingTextStringOnCreature("Inside this gem, " + sName +
" is safely caged.", OBJECT_SELF);
}
else
{
location lTarget = GetItemActivatedTargetLocation();
effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_2);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, lTarget);
oCre = CreateObject(OBJECT_TYPE_CREATURE, sRef, lTarget);
FloatingTextStringOnCreature(sName + " has been set free!", OBJECT_SELF);
DestroyObject(oItem);
AssignCommand(oCre, DetermineCombatRound());
}
}