Further file organization
Further file organization
This commit is contained in:
23
nwn/nwnprc/trunk/scripts/codi_pre_dis.nss
Normal file
23
nwn/nwnprc/trunk/scripts/codi_pre_dis.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: codi_pre_dis
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Ocular Adept: Disintegrate
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: James Stoneburner
|
||||
//:: Created On: 2003-11-30
|
||||
//:: Modified By: Ornedan
|
||||
//:: Modified On: 30.03.2005
|
||||
//:: Modfication: Changed to work as the spell Disintegrate
|
||||
//:://////////////////////////////////////////////
|
||||
#include "prc_inc_sp_tch"
|
||||
|
||||
void main()
|
||||
{
|
||||
int nLevel = GetLevelByClass(CLASS_TYPE_OCULAR);
|
||||
if (DEBUG) FloatingTextStringOnCreature("Your Ocular Adept class level is: " + IntToString(nLevel), OBJECT_SELF);
|
||||
int nDC = 10 + (nLevel/2) + GetAbilityModifier(ABILITY_CHARISMA);
|
||||
if (DEBUG) FloatingTextStringOnCreature("Your Ocular Adept DC is: " + IntToString(nDC), OBJECT_SELF);
|
||||
DoSpellRay(SPELL_DISINTEGRATE, nLevel, nDC);
|
||||
}
|
Reference in New Issue
Block a user