oc3 Posted December 19, 2013 Share Posted December 19, 2013 Help!I'm trying to get a dead or passed out actor( creature/undead) to arise from slep/death. So far I have able to make one spawn dead or make them pass out with a script , but If I try to force their health or fatigue back to a positive number, I can hear them, but they do not get up as I want. I even tried the resurrect function. Also tried it with a regular NPC as ooposed to a creature. ULTIMATELY, I'm trying duplicate an effect, like in Skyrim, where dead gaurdians in caskets get up and fight you. ***Think about how skeletons reassemble themselves sometimes. That effect would be acceptable, but I can't figure out how it's done. I'm fine with either zombie characters or skeletons if that helps. Thanks to all, I'm getting close to releasing something hopefully amazing, so any help is appreciated.OC3 Link to comment Share on other sites More sharing options...
olha2 Posted December 19, 2013 Share Posted December 19, 2013 Martins Monster Mod do's this with undead (check skeletons im sure it do's it with that) so do's 28 days and a bite 4 do, check those mods out and see how the do it, Link to comment Share on other sites More sharing options...
Lanceor Posted December 19, 2013 Share Posted December 19, 2013 Here's the relevant bits of a gamemode block of one of my NPCs that lies "dead" until the player gets within 500 units. If you want to, you could also remove the detect life shader somewhere. BEGIN GAMEMODE Set Me to GetSelf if ( DoOnce == 0 ) set DoOnce to 1 SetAV Paralysis 1 endif if ( DoOnce2 == 0 ) if ( Me.GetDistance PlayerRef < 500 ) set DoOnce2 to 1 SetAV Paralysis 0 SetAlert 1 endif endif END Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted December 19, 2013 Share Posted December 19, 2013 (edited) As far as I remember it was a parameter (a flag) to the resurrect function, which decides whether the actor 'respawns' or simply 'gets up'. Have you tried "resurrect 1" already? I can knock actors out by letting their fatigue drop below 0. If I then keep them down there, they won't get up on their own, until I 'let it raise' above on its own again.If I use any of the 'set' functions for this trick, it won't work. You cannot just set the 'base' fatigue below 0 or something. It must be one of the 'mod' functions instead, and again the ones which do not mod the 'base' value. Additionally, if I mod their fatigue to above 0 in a way that it jumps over the 0 mark, they won't get up either.For some reason they have to be mod'ed up to 'close before 0' instead and the last step which will trigger the get up event has to be taken by themselves.That's not the only way to make actors get up from whatever sleep they were in though, just the only one I played around with myself so far. (Prevent real death when close to 0 hp, freeze and lock in unconsciousness instead, bring back alive after a short time or a certain event was triggered. That's some nasty foes, only 'pretending' you killed them. Lost in a bunch of their corpses after a hectic fight you never knew which one might just get up again next instant!) edit: @Lanceor: Never thought about using the Paralysis actor value before. Might just do the same more efficiently than my approach. Definitely something to try out next. :thumbsup: Edited December 19, 2013 by DrakeTheDragon Link to comment Share on other sites More sharing options...
oc3 Posted December 19, 2013 Author Share Posted December 19, 2013 Thanks all. All good suggestions. I have tried resurrect 1, but it had no effect on them getting up. I'll tinker around with all your ideas tonight.thanks for your time. Link to comment Share on other sites More sharing options...
oc3 Posted December 19, 2013 Author Share Posted December 19, 2013 Another question. Is it not possible to use a sleep package on a creature such as a skelton or zombie? This was the first thing I tried, but could not get it to work. I assumed it was because it was a creature. I have never seen a creature sleep in game. The huge advantage of using sleep would be that I could probably have them fit inside a coffin while asleep, as opposed to just having them crumpled to the floor in a disorderly fashion. Link to comment Share on other sites More sharing options...
Lanceor Posted December 20, 2013 Share Posted December 20, 2013 Another question. Is it not possible to use a sleep package on a creature such as a skelton or zombie? This was the first thing I tried, but could not get it to work. I assumed it was because it was a creature. I have never seen a creature sleep in game. The huge advantage of using sleep would be that I could probably have them fit inside a coffin while asleep, as opposed to just having them crumpled to the floor in a disorderly fashion. I could be wrong but I don't think creatures have sleep packages. Ever seen a creature lie down on a bed and sleep? However, if you could get some skeleton "armour" (i.e. worn like armour/clothes, looks like a skeleton), you could have an NPC sleep in designated "beds". Alas, getting NPCs to do what you want them to is a PITA. If you want the skeletons to be asleep when the player sees them, you should bury the area rather deep in the dungeon so that the player doesn't see them wander over to a "bed", climb in and sleep like you usually see when you break into a house at night. Yes, you can make the game do things that it wasn't really design to, but you'll need to put up with ever increasing layers of complexity. :wink: Link to comment Share on other sites More sharing options...
oc3 Posted December 20, 2013 Author Share Posted December 20, 2013 However, if you could get some skeleton "armour" (i.e. worn like armour/clothes, looks like a skeleton), you could have an NPC sleep in designated "beds".Awesome!, just the kind of thinking outside the box that I like. I'll try not to have to go to that much trouble, but If I have to, Many thanks. Not sure I would have thought of that myself. Link to comment Share on other sites More sharing options...
Recommended Posts