Jump to content

Script to kill


radovan

Recommended Posts

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

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

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

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

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
End

I 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

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

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 == 40

to: if GetStage MyQuest <= 40

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...