mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-16 16:37:14 -05:00
Further file organization
Further file organization
This commit is contained in:
23
nwn/nwnprc/trunk/scripts/sol_boltxagya.nss
Normal file
23
nwn/nwnprc/trunk/scripts/sol_boltxagya.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "prc_inc_sp_tch"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//Declare major variables
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
effect eSun = EffectVisualEffect(VFX_IMP_SUNSTRIKE);
|
||||
effect eBolt;
|
||||
|
||||
int iDice = GetHitDice(GetMaster())/5+GetLevelByClass(CLASS_TYPE_SOLDIER_OF_LIGHT,GetMaster());
|
||||
|
||||
//Make a saving throw check
|
||||
if (PRCDoRangedTouchAttack(oTarget))
|
||||
{
|
||||
eBolt = EffectDamage(d8(1),DAMAGE_TYPE_POSITIVE);
|
||||
eBolt = SupernaturalEffect(eBolt);
|
||||
//Apply the VFX impact and effects
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eBolt, oTarget);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSun, oTarget);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user