Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,35 @@
//:://////////////////////////////////////////////
//:: 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());
}
}