Initial upload
Initial upload.
This commit is contained in:
25
_module/nss/cal_negative.nss
Normal file
25
_module/nss/cal_negative.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
//Script: cal_explode
|
||||
//Author: Albert Shih (Calidarien)
|
||||
//Version: v1.0, 2002-06-25
|
||||
//Usage: Caller explodes after a delay and damages nearby objects for 2d6 fire
|
||||
// damage (Reflex save DC 15)
|
||||
//Notes:
|
||||
// v1.0: Release version
|
||||
// tdh - I changed reflex to 18 and damage to 2d10
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void ExplodeAtLocation(location lTarget, int nDamage, int nSaveDC = 18, float fRadius = 3.) {
|
||||
ApplyEffectAtLocation( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HORRID_WILTING), lTarget);
|
||||
object oObject = GetFirstObjectInShape(SHAPE_SPHERE, fRadius, lTarget);
|
||||
do {
|
||||
// int nDamageAfterSave = GetReflexAdjustedDamage(nDamage, oObject, nSaveDC);
|
||||
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(nDamage, DAMAGE_TYPE_NEGATIVE), oObject);
|
||||
} while ((oObject = GetNextObjectInShape(SHAPE_SPHERE, fRadius, lTarget)) != OBJECT_INVALID);
|
||||
}
|
||||
//
|
||||
void main()
|
||||
{
|
||||
location lSource = GetLocation(OBJECT_SELF);
|
||||
DelayCommand(3., ExplodeAtLocation(lSource, d10(2)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user