Further file organization
Further file organization
This commit is contained in:
59
nwn/nwnprc/trunk/newspellbook/true_ego_step.nss
Normal file
59
nwn/nwnprc/trunk/newspellbook/true_ego_step.nss
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
----------------
|
||||
Cadence of the Distant Step
|
||||
Acolyte of the Ego level 2+
|
||||
|
||||
true_ego_step
|
||||
----------------
|
||||
|
||||
25/8/18 by Stratovarius
|
||||
*/ /** @file
|
||||
|
||||
Type of Feat: Class
|
||||
Prerequisite: Acolye of the Ego 2+
|
||||
Specifics: You can dimension door, as the spell.
|
||||
Use: Selected.
|
||||
*/
|
||||
|
||||
#include "true_inc_trufunc"
|
||||
#include "true_utterhook"
|
||||
//#include "prc_alterations"
|
||||
#include "spinc_dimdoor"
|
||||
|
||||
void main()
|
||||
{
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2006-7-19 by Stratovarius
|
||||
If you want to make changes to all utterances
|
||||
check true_utterhook to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!TruePreUtterCastCode())
|
||||
{
|
||||
// If code within the PreUtterCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
object oTrueSpeaker = OBJECT_SELF;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
// Cadences always use personal truenames, even when targeting another creature
|
||||
struct utterance utter = EvaluateUtterance(oTrueSpeaker,
|
||||
oTrueSpeaker,
|
||||
METAUTTERANCE_NONE/* Use METAUTTERANCE_NONE if it has no Metautterance usable*/,
|
||||
LEXICON_EVOLVING_MIND /* Uses the same DC formula*/);
|
||||
|
||||
if(utter.bCanUtter)
|
||||
{
|
||||
int nCasterLvl = GetTruespeakerLevel(oTrueSpeaker, CLASS_TYPE_ACOLYTE_EGO, TRUE); //Use Hit Dice
|
||||
int nSpellID = PRCGetSpellId();
|
||||
|
||||
DimensionDoor(oTrueSpeaker, nCasterLvl, nSpellID, "", DIMENSIONDOOR_SELF, FALSE);
|
||||
|
||||
// Mark for the Law of Sequence. This only happens if the cadence succeeds, which is why its down here.
|
||||
DoLawOfSequence(oTrueSpeaker, utter.nSpellId, utter.fDur);
|
||||
}// end if - Successful utterance
|
||||
}
|
Reference in New Issue
Block a user