Author Sticky: Post Working Scripts Here
Astral Dragon Posted: Wednesday, 03 July 09:41AM
1. Fire Torture

2. What it does: Makes a blast of fire raign down from above and damage anything in it's path or area of effect.
I created this to work off of the use of a pull chain onto a skull type floor graphic. The target was an invisible object placed on the floor but you can designate anything as the target by just changing the tag below.
Make sure your target does not have the Static box checked. And considering the target will take damage. It's best to make the target a plot item, so it doesn't take damage. Or you can make the target have X number of life points to give it a breaking point.

But put this scipt into the OnUse section of a pullchain,
then create an invisible object and place in on the floor
where you want to flame to hit. And then place the Tag from the invisible object in the scipt below.

NWScript:
void main()

{

 //The object you want to cast the spell on

   object oTarget = GetObjectByTag("InvisibleObject001");

     //check out the "constants" section for more choices

   effect eVis = EffectVisualEffec(VFX_BEAM_FIRE_LASH);

   effect eDur = EffectVisualEffect(VFX_DUR_AURA_FIRE);

   effect eLink = EffectLinkEffects(eVis, eDur);

     //the number is Turns the fire will stay on

   int nDuration = 6;

   //Fire cast spell at event for the specified target.  

   AssignCommand(oTarget, ActionCastSpellAtObject SPELL_FLAME_STRIKE,oTarget));

     //Apply the VFX impact and effects

AssignCommand(oTarget, ApplyEffectToObject DURATION_TYPE_TEMPORARY,eLink, oTarget,TurnsToSeconds(nDuration)));

}