jamochawoke Posted October 24, 2011 Share Posted October 24, 2011 Ok. So I have a skeleton NPC that starts out dead until you get close to it. Then it revives and catches on fire (it's in a bonfire) and is supposed to immediately attack the player until it's dead. However, nothing I do can get the skeleton to attack. Here's my script: scn VDRiseFireSkeleton short riseOnce begin GameMode if GetDistance Player <= 150 && riseOnce == 0 if Player.GetLevel <= 5 setav Health 70 elseif Player.GetLevel <= 7 setav Health 150 elseif Player.GetLevel <= 10 setav Health 240 elseif Player.GetLevel >= 11 setav Health 375 endif PlayMagicShaderVisuals effectFireDamage resurrect 1 set riseOnce to 1 StartCombat Player endif end begin OnDeath StopMagicShaderVisuals effectFireDamage end The creature starts out with 0 health so it can be placed with havok dead and the resurrect 1 command makes it get up. Everything else works perfectly, but the creature just stands there. It has 100 aggression and I even included the code to startcombat against the player. It has fatigue to work with and it has plenty of strength so it isn't being burdened. Occasionally it will use the handtohand equip animation but will never attack. Even the combat music plays so you know it has properly targetted the player. If I target the creature in the game and use the console command resurrect it will attack as normal but resurrect 1 will simply make it not attack like when it runs the script. What gives? Link to comment Share on other sites More sharing options...
jamochawoke Posted October 24, 2011 Author Share Posted October 24, 2011 Just had a thought... Would it be better to force havok on the NPC (no idea how to do it but i've seen it done on mods where they toggle it on and off for like a "force throw" or something) and ghost it so it can't be interacted with by the player until the player gets within range and then toggle the havok off so it gets up and fights like regular? I think the reason it isn't fighting has to do with some weird stuff that Oblivion does with "dead" NPC's that start with zero health.. Link to comment Share on other sites More sharing options...
Ghoulz Posted October 24, 2011 Share Posted October 24, 2011 Look at the script for one of the special skeletons of Epic Old School Dungeon. They pop up and attack on sight. Link to comment Share on other sites More sharing options...
jamochawoke Posted October 24, 2011 Author Share Posted October 24, 2011 Never heard of that mod and it doesn't seem to be on the Nexus? Link to comment Share on other sites More sharing options...
David Brasher Posted October 24, 2011 Share Posted October 24, 2011 An Old School Dungeon Link to comment Share on other sites More sharing options...
Recommended Posts