radovan Posted July 17, 2009 Share Posted July 17, 2009 Hi. Can anybody help me with script to kill enemy while player wearing specific piece of armor and using two weapons, which both must hit enemy certain number of times? Something like using wraithguard, keening and sunder in Morrowind to kill Dagoth Ur. Link to comment Share on other sites More sharing options...
Pronam Posted July 17, 2009 Share Posted July 17, 2009 Sure, it would be quite simple. Are your really going to do almost the same?Like you'll have to wear a glove/bracer/gaunlet to use the weapons? If you specify it (number of hits and stuff), I can give the thing right away.Or if you want to do yourself, then I'll tell what you need. Link to comment Share on other sites More sharing options...
radovan Posted July 18, 2009 Author Share Posted July 18, 2009 It can be any stuff and it doesnt matter what number of hits it will be, I am not sure yet in how form I use this script and I know how to edit it. If you can write it, it will be great. Link to comment Share on other sites More sharing options...
Pronam Posted July 18, 2009 Share Posted July 18, 2009 Owk, but there has to be some kind of number, K, cause adding that would require additional lines.I'll start on it in an hour. If you want damage when you don't equip the armor before you use the weapons, just say so.Otherwise I'll keep it that the weapons will be unequipped when you equip them without the armor. Link to comment Share on other sites More sharing options...
Pronam Posted July 18, 2009 Share Posted July 18, 2009 Scn TargetHitscript short hit ;This script need to placed on the target NPC. (Does not work on objects) ;Change the silver weapons with any weapon you want. Begin OnHitWith WeapSilverDagger2 if GetStage MyQuest == 40 if hit == 0 set hit to 1 message "1" return; to make sure it will not finish it in one round. elseif hit == 1 set hit to 2 message "2" return elseif hit == 2 message "3" set hit to 3 endif endif End Begin OnHitWith WeapSilverMace2 if GetStage MyQuest == 40 if hit == 3 message "death" kill set hit to 4 endif endif EndI just made it so that if you don't have that steel gaunlet equipped, it will unequip both weapons.Just tell if you want to change that...The script can be used on both weapons. scn Weaponscript Begin OnEquip Player if GetStage MyQuest == 40 if player.GetEquipped SteelGauntlets2 != 0 return else if player.GetEquipped WeapSilverDagger2 != 0 player.UnequipItem WeapSilverDagger2 elseif player.GetEquipped WeapSilverMace2 != 0 player.UnequipItem WeapSilverMace2 else return endif endif endif End Link to comment Share on other sites More sharing options...
radovan Posted July 18, 2009 Author Share Posted July 18, 2009 Thanks, it is really nicely done. It is possible to write script for armor so it will work in just one stage of some quest and the rest of time it wiil be possible to equip and use weapons without this armor? Thank you very much. Link to comment Share on other sites More sharing options...
Pronam Posted July 18, 2009 Share Posted July 18, 2009 You mean before and after, or only afterwards?Lol, owk I'll do afterwards...in the above post.I'll stage the opponent as well, that's better for the fps.-done-I already left some room for it before...;)Just type in your quest in 'MyQuest' and the stage at the number. (just took 40 as an example.) If you want to have the armor/weapons thing before stage '40' as well..Just change the block in the last script from: if GetStage MyQuest == 40to: if GetStage MyQuest <= 40 Link to comment Share on other sites More sharing options...
radovan Posted July 19, 2009 Author Share Posted July 19, 2009 Just one more question. If npc I want to kill is set essential and I want it this way, how can I set it non essential just before last hit to kill him? Because this script make this npc unconsciousness. when is set to essential. Link to comment Share on other sites More sharing options...
Pronam Posted July 19, 2009 Share Posted July 19, 2009 Best way would be to do so via the result-script of a Stage..That's the right box next to each stage in the quest-edit menu.Use 'SetEssential' for this. Link to comment Share on other sites More sharing options...
Recommended Posts