Alangara_PRC8/_module/nss/ke_xymoriaspells.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

56 lines
1.5 KiB
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL))
return;
object oCaster;
oCaster = GetObjectByTag("dragonbreath");
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_WORD_OF_FAITH, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
oCaster = GetObjectByTag("dragonbreath2");
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_CALL_LIGHTNING, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
oCaster = GetObjectByTag("dragonbreath");
oTarget = oPC;
DelayCommand(5.0, AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_CALL_LIGHTNING, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE)));
oCaster = GetObjectByTag("dragonbreath2");
oTarget = oPC;
DelayCommand(5.0, AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_HAMMER_OF_THE_GODS, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE)));
oTarget = oPC;
DelayCommand(5.0, AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_HAMMER_OF_THE_GODS, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE)));
oTarget = oPC;
DelayCommand(5.0, AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_HAMMER_OF_THE_GODS, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE)));
}