Further file organization
Further file organization
This commit is contained in:
35
nwn/nwnprc/trunk/racescripts/race_blindbeaut.nss
Normal file
35
nwn/nwnprc/trunk/racescripts/race_blindbeaut.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Blinding Beauty Toggle
|
||||
//:: race_blindbeaut.nss
|
||||
//::///////////////////////////////////////////////
|
||||
/*
|
||||
Toggles Blinding Beauty aura.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Fox
|
||||
//:: Created On: Feb 21, 2008
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
//#include "prc_alterations"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
string sMes = "";
|
||||
|
||||
if(!GetHasSpellEffect(SPELL_NYMPH_BLINDING_BEAUTY))
|
||||
{
|
||||
effect eAura = ExtraordinaryEffect(EffectAreaOfEffect(AOE_PER_NYMPH_BLINDING));
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eAura, oPC);
|
||||
sMes = "*Blinding Beauty Activated*";
|
||||
}
|
||||
else
|
||||
{
|
||||
// Removes effects
|
||||
PRCRemoveSpellEffects(SPELL_NYMPH_BLINDING_BEAUTY, oPC, oPC);
|
||||
sMes = "*Blinding Beauty Deactivated*";
|
||||
}
|
||||
|
||||
FloatingTextStringOnCreature(sMes, oPC, FALSE);
|
||||
}
|
Reference in New Issue
Block a user