Aller au contenu

Photo

How do I spawn a spell effect without a caster?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
ColorsFade

ColorsFade
  • Members
  • 1 271 messages
 I have a trigger that when the PC and party cross, I want to spawn an effect at a particular location. I have the script set on the trigger's OnEnter event and it clearly fires (from my debug line), but the ActionCastFakeSpellAtObject() doesn't do anything, and my guess is because the trigger isn't a valid Actor to perform an "action" with. 

What's the solution here? A scripthidden character? Some other mechanic?

#2
kamal_

kamal_
  • Members
  • 5 260 messages
use an ipoint to cast it.

#3
ColorsFade

ColorsFade
  • Members
  • 1 271 messages

kamal_ wrote...

use an ipoint to cast it.


I figured that might be it... was about to give that a try. Thanks!

#4
Morbane

Morbane
  • Members
  • 1 883 messages
iPoints can have AOE effects in them - iPoints rule

#5
Darin

Darin
  • Members
  • 282 messages
depending on the spell, you could also use EffectVisualEffect(), EffectDamage(), EffectNWN2... etc. to just fake the spell itself on a trigger...(apply effect of spell and visual effect of spell, and it's as if the spell was cast!)

If you use an iPoint, remember to RENAME the ipoint...nothing is more likely to pull a player out of emersion then "iPoint damages Joe the Fighter..." (I tend to name them "Dart Wall" for dart traps from walls, etc.)

There's also InvisibleMan creature appearance, if for some reason a placeable fails.