Question about resurrection.

Post » Sat Jun 23, 2012 9:10 pm

Hello!

Using the console you can resurrect NPCs back to normal, no zombies. I expected the actor function .Resurrect() to do the same function.

Unfortunatly .Resurrect() just seems to turn the person into a zombie, albeit without the effects, but still a zombie.

Is there a way to use the console command version inside papyrus?
User avatar
Honey Suckle
 
Posts: 3425
Joined: Wed Sep 27, 2006 4:22 pm

Post » Sat Jun 23, 2012 9:14 pm

According to the wiki, http://www.creationkit.com/Resurrect_-_Actor is Papyrus' version of the console's http://www.creationkit.com/ResurrectActor, and the example has a comment that mentions "he doesn't become undead" about the calling Actor.

I can't test it on this computer, but could you confirm that this information is incorrect, or at least misleading? I'm surprised to hear that actors resurrected by Papyrus act like zombies...

Cipscis
User avatar
Austin Suggs
 
Posts: 3358
Joined: Sun Oct 07, 2007 5:35 pm

Post » Sun Jun 24, 2012 5:50 am

According to the wiki, http://www.creationkit.com/Resurrect_-_Actor is Papyrus' version of the console's http://www.creationkit.com/ResurrectActor, and the example has a comment that mentions "he doesn't become undead" about the calling Actor.

I can't test it on this computer, but could you confirm that this information is incorrect, or at least misleading? I'm surprised to hear that actors resurrected by Papyrus act like zombies...

Cipscis

Hm, I just noticed my magic effect archetype was set to resurrection, so that was probably where it was going wrong.

Sorry!
User avatar
Lynette Wilson
 
Posts: 3424
Joined: Fri Jul 14, 2006 4:20 pm

Post » Sun Jun 24, 2012 2:59 am

Okay new problem.

I currently have this code in my magic effect object:
Scriptname OnHitResurrect extends activemagiceffect EVENT onInit()		   Debug.MessageBox("init")GetTargetActor().Resurrect()endEVENT

The messagebox pops up when I hit a dead actor (and alive too, but i'll fix that later), but the actor isn't resurrected.

I have no idea what's causing this, i can only think that the "gettargetactor" is returning nothing, and no idea why it isn't.
User avatar
Nathan Risch
 
Posts: 3313
Joined: Sun Aug 05, 2007 10:15 pm

Post » Sat Jun 23, 2012 9:37 pm

I can't find any solution to this.
User avatar
Melanie Steinberg
 
Posts: 3365
Joined: Fri Apr 20, 2007 11:25 pm

Post » Sun Jun 24, 2012 1:35 am

Bump
User avatar
james reed
 
Posts: 3371
Joined: Tue Sep 18, 2007 12:18 am

Post » Sun Jun 24, 2012 5:24 am

The http://www.creationkit.com/OnInit event is never called for http://www.creationkit.com/ActiveMagicEffect_Script#Events. Try http://www.creationkit.com/OnEffectStart_-_ActiveMagicEffect instead.

Cipscis
User avatar
Jessica Stokes
 
Posts: 3315
Joined: Fri Jul 28, 2006 11:01 am


Return to V - Skyrim