This is a new spell I created for my PW Reino de Aldor, and I thought I might share it, in case someone wants to use it or just learn from it.
I think if you plan to create a similar spell looking at the script can give you good ideas about it.
It's done for NWN:EE .34 but it shouldn't be hard to adapt it to other versions.
It's a cleric level 5 spell. It creates a glyph of destruction on the flloor. On each round the glyph throws divine rays at nearby creatures. The spell allows to use all metamagic, including extend, empower and maximize.
This is the description (my broken translation of it):
Caster level: cleric 5
Innate level : 5
School: Abjuration
Descriptors: Divine
Components: Verbal, Somatic
Range: Short
Area of effect / Objetive: Big
Duration: 1 round every 2 levels
Counterspell: no, but you can cast Dispell to the glyph
Save: Reflex 1/2
The caster creates a divine glyph of destruction. On each round the glyph activates and throws rays at all nearby creatures (except the caster), causing 1d6 divine damage for every 5 levels of cleric, to a max. of 4d6.
903 Glyph_destruction 16778596 is_X2GlphWard A S vs 0x3f 0x36 sp_glyphdestruct **** 5 **** **** **** **** 5 1500 hand **** vco_mehanholy02 **** sco_mehanholy02 vs_chant_evoc_hm vs_chant_evoc_hf out 1000 **** **** **** **** 1 vpr_ectoholy01 homing hand spr_ectoholy01 path **** 0 **** **** **** **** **** 11 **** 1 16778597 1 0 **** 1 **** **** **** 1
Attachment | Size |
---|---|
![]() | 1.62 KB |
Nice. Great job. I just tested it. Works as it should. Keep more of these coming :)
I created another spell using your spell as the template (thanks!!). I called it Glyph of "Unholy Destruction". I changed the icon, changed it to a necromancer spell, kept everything else the same except I created a new placeable VFX and used negative energy damage. Works perfectly. Except it does negative damage to undead.
I tried to put this in the script:
if (GetRacialType (oFirstTarget) == RACIAL_TYPE_UNDEAD) eDamage = EffectHeal (nDamStrike/2);
but can't seem to know where to put it. to make i work. I stole this part of script from my other spell on Chain Negativity I uploaded here as that spell heals undead if it is used against them.
Not a script writer...how would you make it heal undead when negative energy strikes them and where in your script would you put it?
Not sure if you want to heal undead, or to damage them with a different damage type. In any case you have to change the code where the comment "// We apply the damage..." is, as I show you (not tested, as I'm not with the toolset right now, but will give you the idea of how to do it).
If you want the first:
// We apply the damage (from the caster, so he gets XP for the killing)
effect eDamage;
if (GetRacialType(oTarget)==RACIAL_TYPE_UNDEAD) eDamage = EffectHeal(iDamage);
else eDamage = EffectDamage(iDamage, DAMAGE_TYPE_NEGATIVE);
if (iDamage>0) DelayCommand(fDelay + 0.3, AssignCommand(oCaster, ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oTarget)));
For the second choice:
// We apply the damage (from the caster, so he gets XP for the killing)
int iDamageType = DAMAGE_TYPE_NEGATIVE;
if (GetRacialType(oTarget)==RACIAL_TYPE_UNDEAD) iDamageType = DAMAGE_TYPE_POSITIVE;
if (iDamage>0) DelayCommand(fDelay + 0.3, AssignCommand(oCaster, ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDamage(iDamage, iDamageType), oTarget)));
Thanks man. I will try out your script suggestions tomorrow...much appreciated...and great spell!!...so much potential with also using it for other spells :)
Sent you an email. I mention I tried the script changes you suggested...it would not compile. Can you see what's wrong with it and send me the fixed script you could get to work please if it's not much of a bother.
Well met.
Neat idea, and adding the code instructions is an extra gift to us all. Many thanks for your efforts. Great spell graphics choice too. More.
—
Phyte: My heart has been locked for longer than I can remember.
Sharwyn: Done, and done.
—