Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

25 lines
476 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.2
For download info, please visit:
http://www.angelfire.com/space/lilacsoul */
//Put this OnDeath
void main()
{
object oPC = GetLastKiller();
if (!GetIsPC(oPC)) return;
object oCaster;
oCaster = GetObjectByTag("lightningstone");
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_LIGHTNING_BOLT, oTarget, METAMAGIC_ANY, TRUE, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
}