Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
38
_working/nw_s0_rmvcurse.nss
Normal file
38
_working/nw_s0_rmvcurse.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
///::///////////////////////////////////////////////
|
||||
//:: Remove Curse
|
||||
//:: NW_S0_RmvCurse.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Goes through the effects on a character and removes
|
||||
all curse effects.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Aug 7, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
//:: VFX Pass By: Preston W, On: June 22, 2001
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oTarget = GetSpellTargetObject();
|
||||
int nType;
|
||||
effect eRemove = GetFirstEffect(oTarget);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_REMOVE_CONDITION);
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_REMOVE_CURSE, FALSE));
|
||||
//Get the first effect on the target
|
||||
while(GetIsEffectValid(eRemove))
|
||||
{
|
||||
//Check if the current effect is of correct type
|
||||
if (GetEffectType(eRemove) == EFFECT_TYPE_CURSE)
|
||||
{
|
||||
//Remove the effect and apply VFX impact
|
||||
RemoveEffect(oTarget, eRemove);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
}
|
||||
//Get the next effect on the target
|
||||
GetNextEffect(oTarget);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user