NWNWiki
Advertisement
NWNWiki
3,718
pages


The Icy Stare of a Statue

What it does

Causes the nearest object with a tag of 'BeamStatue' to fire a cold beam at the PC that walks in front of it. It currently does 2d6 points of damage.


Notes

Pretty clear, I think. The colors of the beams are editable (change the eBeam) and the damage (change the eDMG) is as well. It also repeats nicely, I used several of them in a room that guarded an important chamber. Easy to dodge if you know what you're looking for, but most people will charge right in...


The Script Itself

put the script on a Generic Trigger's onEnter

cs_beamstat

void main()
{
object oPC = GetEnteringObject();
object oStatue = GetNearestObjectByTag("BeamStatue");
effect eBeam = EffectBeam(VFX_BEAM_COLD,oStatue,BODY_NODE_HAND,FALSE);
effect eDMG = EffectDamage( d6(2) ,DAMAGE_TYPE_HOT);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eBaum,oPC,2.0);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eDMG,oPC,0.0);
}
Advertisement