Jump to content

Resurrect Spell


AGLNM02

Recommended Posts

Hi All,

 

I am sorry if this topic has come up before and/or is in the wrong category, but due to health issues I haven't been on here for e while. While exploring Cyrodiil, I've spotted several Imperial Legion Horses dead. This got me thinking, is there a way to create a script using the Resurrect Console Command in a spell on a dead target to permanently resurrect it, instead of the spell which only resurrects a dead target for a limited period of time?

 

Thanks.

Link to comment
Share on other sites

  • 2 months later...

I made a simialr spell a couple of weeks back and it works great as long as I target dead things like NPC's or Creatures but if I target anything else -> CTD!!!! - So do a quicksave first before using it in case... ;)

Link to comment
Share on other sites

I made a simialr spell a couple of weeks back and it works great as long as I target dead things like NPC's or Creatures but if I target anything else -> CTD!!!! - So do a quicksave first before using it in case... :wink:

The spell with the script I pasted in my previous message doesn't cause any CTD when you use it on an irrelevant target.

Link to comment
Share on other sites

Odd... I could delete some lines in mine or maybe you can tell me what I did wrong?:

scn PekResurrectSCR

Ref TargetREF

Begin ScriptEffectStart

	Set TargetREF to GetSelf
	
	if ( TargetREF.GetDead == 1)
		If ( TargetREF.GetIsCreature == 1 || TargetREF.IsActor == 1 )
			TargetREF.Resurrect 1
			MessageEX "%n is up and running again", TargetREF
		Endif
	Else
		Message "It's not possible to Resurrect that %n", TargetREF
	Endif
End

Begin ScriptEffectFinish
	Dispel PekResurrectSPL
End
		

I SEE IT NOW!!!!!!

 

Message instead of MessageEX... Damn... :D It is the %n that only works with OBSE functions... I think it is that line at least as it there the game CTD...

I will try to target a container or something later...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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