Further file organization
Further file organization
This commit is contained in:
35
nwn/nwnprc/trunk/scripts/ft_disc_sun.nss
Normal file
35
nwn/nwnprc/trunk/scripts/ft_disc_sun.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Discipline of the Sun
|
||||
//:: ft_disc_sun.nss
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Type of Feat: Divine.
|
||||
Prerequisite: Turn Undead, Good Alignment.
|
||||
|
||||
Specifics: You spend two turn attempts when
|
||||
you turn undead, to destroy the Undead instead
|
||||
of turning them.
|
||||
|
||||
Use: Selected.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
|
||||
if(GetAlignmentGoodEvil(oPC) != ALIGNMENT_GOOD)
|
||||
return;
|
||||
|
||||
if(!CheckTurnUndeadUses(oPC, 2))
|
||||
{
|
||||
SpeakStringByStrRef(40550);
|
||||
return;
|
||||
}
|
||||
|
||||
ActionDoCommand(SetLocalInt(oPC, "UsingSunDomain", TRUE));
|
||||
ActionCastSpellAtObject(SPELLABILITY_TURN_UNDEAD, oPC, METAMAGIC_ANY, TRUE);
|
||||
ActionDoCommand(DeleteLocalInt(oPC, "UsingSunDomain"));
|
||||
}
|
Reference in New Issue
Block a user