Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
/*:://////////////////////////////////////////////
|
|
//:: Spell Name Darkness: On Enter
|
|
//:: Spell FileName PHS_S_DarknessA
|
|
//:://////////////////////////////////////////////
|
|
//:: Spell Effects Applied / Notes
|
|
//:://////////////////////////////////////////////
|
|
AOE mearly applies a 20% consealment bonus. Note that if they have Daylight
|
|
applied to them, then it cannot be consealed as the effects negate each
|
|
other.
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jasperre
|
|
//::////////////////////////////////////////////*/
|
|
|
|
#include "PHS_INC_SPELLS"
|
|
|
|
void main()
|
|
{
|
|
// Check AOE status
|
|
if(!PHS_CheckAOECreator()) return;
|
|
|
|
// Declare major variables
|
|
object oTarget = GetEnteringObject();
|
|
object oCreator = GetAreaOfEffectCreator();
|
|
|
|
//Declare major effects
|
|
effect eConseal = EffectConcealment(20);
|
|
|
|
//Fire cast spell at event for the target
|
|
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_DARKNESS);
|
|
|
|
// Apply effects
|
|
// * Cosealment doesn't overlap.
|
|
PHS_ApplyPermanent(oTarget, eConseal);
|
|
}
|