scripting damage

Post » Fri May 13, 2011 4:59 am

I want to script a sneak attack on an NPC done by another NPC. SO i need to know two things.

1. What happens with enchanted weapons in a sneak attack? Are the enchantments mutliplied, or only the weapon's damage.
2. What is the best way to script this? Scripted spell? Use modav health?

Thanks :)
User avatar
Penny Flame
 
Posts: 3336
Joined: Sat Aug 12, 2006 1:53 am

Post » Fri May 13, 2011 10:49 am

I want to script a sneak attack on an NPC done by another NPC. SO i need to know two things.

1. What happens with enchanted weapons in a sneak attack? Are the enchantments mutliplied, or only the weapon's damage.


I don't think that anything is multiplied when it's just from one NPC to another.
User avatar
Anna Watts
 
Posts: 3476
Joined: Sat Jun 17, 2006 8:31 pm

Post » Thu May 12, 2011 11:03 pm

I don't think that anything is multiplied when it's just from one NPC to another.


I know NPC cant preform sneak attacks, thats what im trying to script in this situation.
User avatar
Jason Rice
 
Posts: 3445
Joined: Thu Aug 16, 2007 3:42 pm

Post » Fri May 13, 2011 12:54 pm

I want to script a sneak attack on an NPC done by another NPC. SO i need to know two things.

1. What happens with enchanted weapons in a sneak attack? Are the enchantments mutliplied, or only the weapon's damage.


Fairly sure the Enchantment is used as normal, no multiplication.

2. What is the best way to script this? Scripted spell? Use modav health?

Thanks :)


If your situation is canned (fully scripted situation without any game base AI involved) then you can just use an enchantment with only one charge that will do the Sneak DMG you want.

If its Game AI based just a sneaking NPC attacking another then you can do some scripting on the attacking NPC run a gamemode script that checks GetCombatTarget and if the Target has noticed the Attacking NPC to apply extra DMG or not.

If you explained the exact situation your going for we could probably give better help.
User avatar
Dominic Vaughan
 
Posts: 3531
Joined: Mon May 14, 2007 1:47 pm

Post » Fri May 13, 2011 3:56 am

I know NPC cant preform sneak attacks, thats what im trying to script in this situation.


Oh, I see now. Your first question confused me of your intent, sorry.

Resist normal weapons -300%? :P

Is this a controlled, one time scene? If so I may have a solution.
User avatar
Cedric Pearson
 
Posts: 3487
Joined: Fri Sep 28, 2007 9:39 pm

Post » Thu May 12, 2011 10:42 pm

Its fully scripted, basically two NPC are about to fight, but one of them does a sneak attack before it begins.....I know what weapon they are using and i dont need to show the visuals for it.
User avatar
Charlotte Buckley
 
Posts: 3532
Joined: Fri Oct 27, 2006 11:29 am


Return to IV - Oblivion