Can someone write a really simple script for me?

Post » Sun Jun 17, 2012 11:38 pm

So I've been looking at the CK Wiki for the past two hours and it's really confusing. There aren't examples for all of the types of scripts, so can someone do a quick example script for me?

How would you write a script to add to a magic effect that would kill the target upon impact?

I don't really understand the syntax, but I think it would start with:

ScriptName *insertmagiceffectnamehere* extends ActiveMagicEffect

If I just had an example to work off that would be awesome. :biggrin:

User avatar
Devils Cheek
 
Posts: 3561
Joined: Sun Aug 13, 2006 10:24 pm

Post » Mon Jun 18, 2012 7:51 am

Don't make things so complicated.

For example you could just copy the fireboltspell and alter Damage to like 9999999999999Pts and give it a speical effect ;)
User avatar
Sharra Llenos
 
Posts: 3399
Joined: Wed Jan 17, 2007 1:09 pm

Post » Mon Jun 18, 2012 1:53 pm

Don't make things so complicated.

For example you could just copy the fireboltspell and alter Damage to like 9999999999999Pts and give it a speical effect :wink:

It's not the effect I want, but the scripting knowledge.
User avatar
Emmanuel Morales
 
Posts: 3433
Joined: Sat Oct 06, 2007 2:03 pm

Post » Mon Jun 18, 2012 5:36 am

I'd expect this to work, although I haven't tested it:
ScriptName InstantKillEffectScript extends ActiveMagicEffectEvent OnEffectStart(Actor akTarget, Actor akCaster)	akTarget.Kill(akCaster)EndEvent

Cipscis
User avatar
x a million...
 
Posts: 3464
Joined: Tue Jun 13, 2006 2:59 pm

Post » Mon Jun 18, 2012 12:48 am

I'd expect this to work, although I haven't tested it:
ScriptName InstantKillEffectScript extends ActiveMagicEffectEvent OnEffectStart(Actor akTarget, Actor akCaster)	akTarget.Kill(akCaster)EndEvent

Cipscis

Worked perfectly, and I think I'm getting the idea of the syntax. Thank you. :D
User avatar
Rob Davidson
 
Posts: 3422
Joined: Thu Aug 02, 2007 2:52 am

Post » Mon Jun 18, 2012 2:05 pm

Glad I could help :)

I find that the http://www.creationkit.com/Category:Events page is possibly the most useful reference page on the wiki when planning and writing scripts. You'll likely also need to look up documentation on functions that you want to use, but to start with you'll need to know what events are available.

Cipscis
User avatar
aisha jamil
 
Posts: 3436
Joined: Sun Jul 02, 2006 11:54 am


Return to V - Skyrim