donker316 Posted July 13, 2011 Share Posted July 13, 2011 I have just finished the Furnace of Hate and the Dragonflyer Pens of my utgarde Keep Dungeon and I need some help with scripting a part of the Furnace of Hate. I want to make it so that when u kill the Forge Masters that the flames coming from the Forge will be put out. There are three Forge masters and three large Flames coming from the Forge and to get pass the flames u must kill them. I have no scripting experience, but I am going through the tutorials. Any ideas or help would be great. Link to comment Share on other sites More sharing options...
fg109 Posted July 13, 2011 Share Posted July 13, 2011 Did you want the flames to go out 1 by 1 as you kill the forge masters, or all at once when you kill all three of them? Link to comment Share on other sites More sharing options...
donker316 Posted July 13, 2011 Author Share Posted July 13, 2011 (edited) I want one flame to go out at a time. One for each Forge Master. thank you for the reply. p.s. I would also like the flames to kill the player instantly if he tries to just run through them. Edited July 13, 2011 by donker316 Link to comment Share on other sites More sharing options...
fg109 Posted July 13, 2011 Share Posted July 13, 2011 Use this to make an object script and put it on your forge masters: scriptname examplescript Begin OnDeath if (flame1.GetDisabled == 0) flame1.Disable elseif (flame2.GetDisabled == 0) flame2.Disable else flame3.Disable endif End Flame1, flame2 and flame3 would be the reference IDs you assigned to your flames. As for the flames, make an object script using this for them: scriptname examplescript Begin OnTrigger Player if (Player.GetDead == 0) Player.Kill endif End Link to comment Share on other sites More sharing options...
donker316 Posted July 13, 2011 Author Share Posted July 13, 2011 thank you very much. Link to comment Share on other sites More sharing options...
donker316 Posted July 13, 2011 Author Share Posted July 13, 2011 (edited) Ok so I tested it out. It worked like a Charm! Thank you! I have only finished two rooms but I will need some help scripting the boss fights. Hopefully you can help again. One last question though when the forge masters respawn will the flames return or is this a one time deal. I havent had time to test it yet so i'm just curious. thanx again your a huge help! Edited July 13, 2011 by donker316 Link to comment Share on other sites More sharing options...
fg109 Posted July 13, 2011 Share Posted July 13, 2011 If you want the flames to return, change their script to this: scriptname examplescript Begin OnTrigger Player if (Player.GetDead == 0) Player.Kill endif End Begin OnReset Enable End Link to comment Share on other sites More sharing options...
ub3rman123 Posted July 13, 2011 Share Posted July 13, 2011 What's the purpose of using elseif? Is there some drawback to calling disable on an already disabled object? I see it now. Good idea. That saves having to make three separate scripts and NPCs. (By the way, you totally should put up some WiPz screenshots of the dungeon. I'd be interested in seeing how you built it.) Link to comment Share on other sites More sharing options...
donker316 Posted July 13, 2011 Author Share Posted July 13, 2011 (edited) What's the purpose of using elseif? Is there some drawback to calling disable on an already disabled object? I see it now. Good idea. That saves having to make three separate scripts and NPCs. (By the way, you totally should put up some WiPz screenshots of the dungeon. I'd be interested in seeing how you built it.) I will soon. It's not the calibur of what u did with SM and Shadowfang Keep, but I'm proud of it. I have only finished the Furnace of Hate and Dragonflyer pens is 90% done, so I got a ways to go. So far so good though thx to the help Edited July 13, 2011 by donker316 Link to comment Share on other sites More sharing options...
donker316 Posted July 13, 2011 Author Share Posted July 13, 2011 heres a few screenshots i'll add more Link to comment Share on other sites More sharing options...
Recommended Posts