Added "removed" folder
This commit is contained in:
64
_removed/nw_s0_identify.nss
Normal file
64
_removed/nw_s0_identify.nss
Normal file
@@ -0,0 +1,64 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Identify
|
||||
//:: NW_S0_Identify.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Gives the caster a boost to Lore skill of +25
|
||||
plus caster level. Lasts for 2 rounds.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Oct 22, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Patch 1.71
|
||||
|
||||
- the spell couldn't be recast if caster had also legend lore effect
|
||||
*/
|
||||
|
||||
#include "70_inc_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-23 by GeorgZ
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
//Declare major variables
|
||||
spellsDeclareMajorVariables();
|
||||
int nBonus = 5;
|
||||
effect eLore = EffectSkillIncrease(SKILL_LORE, nBonus);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_MAGICAL_VISION);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
||||
effect eLink = EffectLinkEffects(eVis, eDur);
|
||||
eLink = EffectLinkEffects(eLink, eLore);
|
||||
|
||||
int nDuration = 2;
|
||||
|
||||
//Meta-Magic checks
|
||||
if(spell.Meta == METAMAGIC_EXTEND)
|
||||
{
|
||||
nDuration = 4;
|
||||
}
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(spell.Target, EventSpellCastAt(spell.Caster, spell.Id, FALSE));
|
||||
|
||||
//Apply linked and VFX effects
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, spell.Target, RoundsToSeconds(nDuration));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, spell.Target);
|
||||
}
|
Reference in New Issue
Block a user