Help the noob, please!

Post » Sat Feb 19, 2011 9:01 am

Hey, guys!

I need some help with this: How can I get a script fire when a custom spell is used on a custom activator? In this case I just want the SetStage == 10 when my spell hits a daedric fountain.

Help the noob (me), please!
User avatar
Nims
 
Posts: 3352
Joined: Thu Jun 07, 2007 3:29 pm

Post » Fri Feb 18, 2011 10:57 pm

Begin OnMagicEffectHit FIDG  If ( [QuestID].GetStage < 10 )     SetStage [QuestID] 10  EndIfEnd


Attach that to the Activator, and it should work; FIDG is Fire Damage Elements-- Depending what your Spell is, you'll need to change this bit. You can find them in the Magic Effects sub-menu of the CS (I think it's under Game or something similar-- I can't remember off the top of my head). I don't know if it would work for Script Effects, however...
User avatar
Sara Johanna Scenariste
 
Posts: 3381
Joined: Tue Mar 13, 2007 8:24 pm

Post » Sat Feb 19, 2011 5:23 am

What if it's not when a special kind of magic hits the fountain but when a Spell ID does?
User avatar
Veronica Martinez
 
Posts: 3498
Joined: Tue Jun 20, 2006 9:43 am

Post » Sat Feb 19, 2011 12:43 am

I don't use these sort of things enough to know, I'm afraid.
I think GetActionRef might work:
http://cs.elderscrolls.com/constwiki/index.php/GetActionRef

What does your Spell do?

You could just add in a Script Effet on the Spell itself:

Ref TargetBegin ScriptEffectStart  Set Target to GetSelf  If ( Target.GetIsID [ActivatorID ]  EndIfEnd


But it would depend on your Spell, I guess.
User avatar
Bek Rideout
 
Posts: 3401
Joined: Fri Mar 02, 2007 7:00 pm

Post » Fri Feb 18, 2011 11:01 pm

It's a Dispel on Target spell but I can change that if it means anything?
User avatar
Latisha Fry
 
Posts: 3399
Joined: Sat Jun 24, 2006 6:42 am

Post » Sat Feb 19, 2011 6:01 am

Hey it finally worked!

Thanks CDM!
User avatar
Sarah Bishop
 
Posts: 3387
Joined: Wed Oct 04, 2006 9:59 pm


Return to IV - Oblivion