Jump to content

Script for chance of instakill?


Cole1497

Recommended Posts

Theres a legit weapon that does that, a dagger, called mehrunes razor. Im sure someone could copy the script from that.
Link to comment
Share on other sites

Are you looking for a ready-to-go mod, or are you doing some modding and need just the script?

 

If done as part of an enchantment, instakill would be very easy. For example:


  •  
  • Fire damage 20 pts on strike
  • Soul Trap for 3 seconds on strike
  • Scripted chance of instant kill.

 

If you'd like something like this, just tell me precisely what effects you want, (including all effect magnitudes and durations, % chance to instakill, charges per use and total number of charges in the weapon) and I'll whip up a sigil stone for you.

 

Or let me know if you're modding and want the script.

Link to comment
Share on other sites

I'm pretty sure mehrune's razor's instant kill is only in Skyrim, not Oblivion.

 

Or let me know if you're modding and want the script.

 

Yes, just the script would be nice. I'd like the percentage to be around 5-10. Anywhere in that margin will do.

Link to comment
Share on other sites

Here you go. :)

 

scriptname aaaInstakillScript

Float InstakillChance
Float RandomNumber

BEGIN SCRIPTEFFECTSTART

set InstakillChance to 7.5				;<--------- Edit this to whatever number you want. Initially set at 7.5%.

Set RandomNumber to Rand 0 100				;<--------- Generates a random number from 0.0000 to 100.0000

if ( RandomNumber <= InstakillChance )

message "The victim was killed instantly!"	;<--------- Optional message - delete this line if you don't want it.
Kill						;<--------- Kills the target!

endif

END

 

Save this as a Magic Effect Script, not an Object or Quest Script. To add it to a weapon, create (or edit) an enchantment and add "Scripted Effect". Choose aaaInstakillScript (or whatever you renamed it to) as the script effect and edit the description to whatever you like.

 

Oh BTW, in Oblivion, Mehrunes Razor has a chance to instakill Daedra. ;)

 

Hope that helps!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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