Jump to content

Spell Effect Script Help


badcock

Recommended Posts

Posted

I am wanting to create a new spell effect so I can add it to a shout.  It's been two years or more since I've looked at this stuff and with all the advancements you guys have made, can you point me to a good site that will get me started? The Googles turns up a bunch of results, but nothing that that I have found that shows how to create a spell effect script.  I think it needs to override Form, but not quite sure.

 

Or if someone has a snippet of papyrus code I can start with, that would help greatly.

 

Thanks.

Posted

Hello.

 

The actual container and runner of the effect is called "Magic Effect" (that can be then attached to a Spell.)

 

Inside the Magic Effect you can create a script (extends ActiveMagicEffect.)

 

The script should contain two main events:

Event OnEffectStart(Actor caster, Actor target)
  ...
EndEvent

Event OnEffectFinish(Actor caster, Actor target)
  ...
EndEvent
 
The first one is called as soon as the magic effect is applied (the spell is cast.)
The latter when the effect ends (removed, or expired.)
 
 
Be aware that you have to define the Magic Effect accordingly to the Spell that will use it, or you cannot attach the Magic Effect to the Spell.
 
Posted

CPU,

Thanks for the info.  This has kicked me into action and I have created what I think will be a working effect.  So now I'm trying to attach the script to the MagicEffect and I get this error whenever I try to attach the script.

 

Starting 1 compile threads for 1 files...
Compiling "ElisFirstMagicEffect"...
<unknown>(0,0): Unable to find flags file: TESV_Papyrus_Flags.flg
<unknown>(0,0): unable to locate script ElisFirstMagicEffect
No output generated for ElisFirstMagicEffect, compilation failed.


Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on ElisFirstMagicEffect

I'm going to see if I can find any info on the error.

 

Thanks again.

Posted

Yea, I saw that in one of your posts and have moved past that particular error.  Now I'm getting an error that looks related to SkyUI.  I will be reinstalling that and checking to see I can get the script to compile.

Posted

A normal error about a missing SKYUi file it is normal. Just ignore it if ti just a CK warning when you try to edit compile.

 

Posted

Ok. Thats what I did and it did not compile the script.  I saw a batch file in one of my searches for compiling the scripts, but that particular thread didn't mention the name or the location of the batch file.  To the Googles...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...