Message when a specific magic effect ends

Post » Tue Jun 19, 2012 1:52 am

I'm a complete noob in working with CK, but I think this should be simple enough. So, hopefully someone can explain to me how this can be done. Talk slowly please. :blush:


Oh, what I want is adding a simple message at the top of the screen, once a specific magic effect ends.
User avatar
Causon-Chambers
 
Posts: 3503
Joined: Sun Oct 15, 2006 11:47 pm

Post » Tue Jun 19, 2012 2:07 am

Wow, this got burried quickly. Apparently this isn't an easy thing to mod? :no:
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am

Post » Tue Jun 19, 2012 6:19 am

This could help: Event http://www.creationkit.com/OnEffectFinish_-_ActiveMagicEffect
User avatar
jessica breen
 
Posts: 3524
Joined: Thu Aug 03, 2006 1:04 am

Post » Mon Jun 18, 2012 7:58 pm

Ok, that looks like something. Except I've no idea how to do scripting. The tutorial introducing Papyrus only shows how to attach a script to an object. How do I attach it to a spell effect, though?

Sorry for being such a noob. ^^
User avatar
Philip Rua
 
Posts: 3348
Joined: Sun May 06, 2007 11:53 am

Post » Tue Jun 19, 2012 4:34 am

Ok, that looks like something. Except I've no idea how to do scripting. The tutorial introducing Papyrus only shows how to attach a script to an object. How do I attach it to a spell effect, though?

Sorry for being such a noob. ^^

Don't worry, I'm a noob myself :biggrin: I have no idea of any further steps.. I just think I pointed you in the general direction of the possible solution. :wink:
User avatar
x_JeNnY_x
 
Posts: 3493
Joined: Wed Jul 05, 2006 3:52 pm

Post » Tue Jun 19, 2012 7:12 am

Yeah, thanks for that, btw. :D Well, I'll do some experimenting and then we'll see.
User avatar
Emily Jones
 
Posts: 3425
Joined: Mon Jul 17, 2006 3:33 pm

Post » Mon Jun 18, 2012 11:39 pm

Ok, that looks like something. Except I've no idea how to do scripting. The tutorial introducing Papyrus only shows how to attach a script to an object. How do I attach it to a spell effect, though?

Sorry for being such a noob. ^^

You can add the script right from the magic effect. In that form, in the bottom right, you can add a script. Create a new one when you get prompted to select a script. Give it a nice name. After that it will show up in the effect. Add a property of the message type and fill it with the formid of your message. Then Right-click and edit source.

All you need to do there is add code similar to this:

Event OnEffectFinish(actor aTarget, actor aCaster)	  YourMessagePropertyName.Show()EndEvent

p.s. we are all noobs with the CK and Papyrus :wink:

edit: make sure you fill your message property! If you don't it will never show up even if the rest of your code is dead-on perfect.
User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm

Post » Mon Jun 18, 2012 11:46 pm

I thank you myself for clearing this up :) Good to know.
User avatar
Pete Schmitzer
 
Posts: 3387
Joined: Fri Sep 14, 2007 8:20 am

Post » Tue Jun 19, 2012 4:02 am

It worked! I can't believe it!! Thank you!!
User avatar
Ryan Lutz
 
Posts: 3465
Joined: Sun Sep 09, 2007 12:39 pm

Post » Tue Jun 19, 2012 6:24 am

Pretty cool. But, does it pop a dialog or does it show a nice tidy message at the top?
User avatar
kirsty joanne hines
 
Posts: 3361
Joined: Fri Aug 18, 2006 10:06 am


Return to V - Skyrim