Robert271990 Posted May 25, 2018 Share Posted May 25, 2018 (edited) HI :smile:created an enemy in creation kit, the problem when it dies does NOT reset, my goal is to reset in 24 hours, I do not find the specific command and my English is bad, I hope you apologize and thank you for the inconvenience :D (keep in mind that use creation kit 3 days ago..) :/PD: if it serves them the created npc is called "Xzibit" Edited May 25, 2018 by Robert271990 Link to comment Share on other sites More sharing options...
greyday01 Posted May 26, 2018 Share Posted May 26, 2018 I'd like to know that also. I wanted a haunted graveyard where the ghost respawns every night even if it had been killed. Link to comment Share on other sites More sharing options...
Evangela Posted May 26, 2018 Share Posted May 26, 2018 The "my english is bad" stopped me cold in attempting to explain how it's done. Link to comment Share on other sites More sharing options...
foamyesque Posted May 27, 2018 Share Posted May 27, 2018 There are a few approaches. The key to most of them is the function RegisterForSingleUpdateGameTime() and the events OnUpdateGameTime() and, probably, OnDeath(). The trickiest bit is figuring out how exactly you wish to attach the scripts. Link to comment Share on other sites More sharing options...
Robert271990 Posted May 28, 2018 Author Share Posted May 28, 2018 (edited) Hay algunos enfoques. La clave para la mayoría de ellos es la función RegisterForSingleUpdateGameTime () y los eventos OnUpdateGameTime () y, probablemente, OnDeath (). Lo más complicado es descubrir cómo exactamente deseas adjuntar los scripts.simplifique, quiero que este npc (hombre lobo) tenga tiempo para reaparecer una vez que lo mate, por ejemplo 24h https://k62.kn3.net/6/9/5/F/4/8/900.png solo eso Entiendo que debe crear un comando en la línea y el script, pero no sé cuál es,I just need an example Edited May 28, 2018 by Robert271990 Link to comment Share on other sites More sharing options...
Robert271990 Posted May 28, 2018 Author Share Posted May 28, 2018 (edited) Me gustaría saber eso también. Quería un cementerio embrujado donde el fantasma reaparezca todas las noches, incluso si hubiera sido asesinado. if you find out please let me know :) but I think in this case you need another different script line Edited May 28, 2018 by Robert271990 Link to comment Share on other sites More sharing options...
Robert271990 Posted May 28, 2018 Author Share Posted May 28, 2018 (edited) The "my english is bad" stopped me cold in attempting to explain how it's done.I just need the script command so that, for example, the werewolf reestablishes after 24 hours after he dies for example this https://k62.kn3.net/6/9/5/F/4/8/900.png Edited May 28, 2018 by Robert271990 Link to comment Share on other sites More sharing options...
Evangela Posted May 28, 2018 Share Posted May 28, 2018 (edited) Event OnDeath(Actor akKiller) ; if you care only that this event runs if the killer is the player. if akKiller == Game.GetPlayer() RegisterForSingleUpdateGameTime(24.0) endif EndEvent Event OnUpdateGameTime() ; this will need to be on an alias. ; Don't put scripts directly on the actor, unless it's not a vanilla actor. (GetReference() as Actor).Resurrect() EndEvent Not tested.Not compiled.Just a general idea.Fast Travel, Sleeping, Waiting, anything that advances time will effect this Event (it'll run when all of that is done.) If you have a problem using Resurrect, you can also choose Reset(), but the player cannot be in the same cell, I think, otherwise odd things will happen, like respawning with nothing but their underwear, and things like faction information is not reset. Edited May 28, 2018 by Rasikko Link to comment Share on other sites More sharing options...
Robert271990 Posted May 28, 2018 Author Share Posted May 28, 2018 (edited) Event OnDeath(Actor akKiller) ; if you care only that this event runs if the killer is the player. if akKiller == Game.GetPlayer() RegisterForSingleUpdateGameTime(24.0) endif EndEvent Event OnUpdateGameTime() ; this will need to be on an alias. ; Don't put scripts directly on the actor, unless it's not a vanilla actor. (GetReference() as Actor).Resurrect() EndEvent Not tested.Not compiled.Just a general idea.Fast Travel, Sleeping, Waiting, anything that advances time will effect this Event (it'll run when all of that is done.) If you have a problem using Resurrect, you can also choose Reset(), but the player cannot be in the same cell, I think, otherwise odd things will happen, like respawning with nothing but their underwear, and things like faction information is not reset. "the script extension does not exist" :sad: anyway thanks Edited May 29, 2018 by Robert271990 Link to comment Share on other sites More sharing options...
foamyesque Posted May 29, 2018 Share Posted May 29, 2018 Event OnDeath(Actor akKiller) ; if you care only that this event runs if the killer is the player. if akKiller == Game.GetPlayer() RegisterForSingleUpdateGameTime(24.0) endif EndEvent Event OnUpdateGameTime() ; this will need to be on an alias. ; Don't put scripts directly on the actor, unless it's not a vanilla actor. (GetReference() as Actor).Resurrect() EndEvent Not tested.Not compiled.Just a general idea.Fast Travel, Sleeping, Waiting, anything that advances time will effect this Event (it'll run when all of that is done.) If you have a problem using Resurrect, you can also choose Reset(), but the player cannot be in the same cell, I think, otherwise odd things will happen, like respawning with nothing but their underwear, and things like faction information is not reset. "the script extension does not exist" :sad: anyway thanks All of those function calls exist in vanilla Skyrim. Can you provide the full and exact text of your script and the error log? Link to comment Share on other sites More sharing options...
Recommended Posts