Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
47
_module/_removed files/nw_s0_raisdead.nss
Normal file
47
_module/_removed files/nw_s0_raisdead.nss
Normal file
@@ -0,0 +1,47 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: [Raise Dead]
|
||||
//:: [NW_S0_RaisDead.nss]
|
||||
//:: Copyright (c) 2000 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Brings a character back to life with 1 HP.
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Jan 31, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Last Updated By: Preston Watamaniuk, On: April 11, 2001
|
||||
//:: VFX Pass By: Preston W, On: June 22, 2001
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oTarget = GetSpellTargetObject();
|
||||
object oPC = oTarget;
|
||||
object oItem;
|
||||
|
||||
//Remove the death token
|
||||
object oDeath = GetItemPossessedBy(oPC, "death");
|
||||
DestroyObject(oDeath, 0.0f);
|
||||
|
||||
effect eRaise = EffectResurrection();
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_RAISE_DEAD);
|
||||
|
||||
if (GetLocalInt(GetArea(oTarget), "streamed")==2){
|
||||
return;
|
||||
}
|
||||
if(GetIsDead(oTarget))
|
||||
{
|
||||
SetPlotFlag(oTarget, 0);
|
||||
|
||||
SetCampaignInt(GetName(GetModule()), "DEATH_LOG", 0, oPC);
|
||||
|
||||
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_RAISE_DEAD, FALSE));
|
||||
//Apply raise dead effect and VFX impact
|
||||
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetLocation(oTarget));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eRaise, oTarget);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user