Can Weapons Do This?

Post » Fri Jul 17, 2015 11:57 pm

I'm creating a sword from another game so I can use it in Skyrim. The sword in the game it originates from has a percent chance, when the enemy is hit, to activate one of six abilities it has, otherwise it just hits a normal attack (As if it has no enchantment).

Is it possible, in Skyrim, to mess around with enchantment settings, scripting, etc., to recreate this? Is there a way to script a percent chance of a sword to enable an ability one hit at a time?

EDIT: Here are some examples of the abilities:

-On percent chance, steal health from enemy when hit.

-On percent chance, steal mana from enemy when hit.

-On percent chance, summon a familiar to attack the enemy.

User avatar
Prue
 
Posts: 3425
Joined: Sun Feb 11, 2007 4:27 am

Post » Sat Jul 18, 2015 5:46 am

The scripting/enchantmenthttp://elderscrolls.wikia.com/wiki/Wabbajack_(Skyrim) might help you create what you want for your own creation.

My suggestion would be to dig through it in the Creation Kit.

User avatar
Anna S
 
Posts: 3408
Joined: Thu Apr 19, 2007 2:13 am

Post » Sat Jul 18, 2015 7:54 am

You'd probably want a Scripted Enchantment, I'd guess, with a randomInt...

 Int ChanceOfEffect Event OnEffectStart(Actor Target, Actor Caster); Double check order of those...  ChanceOfEffect = Utility.RandomInt(1, 100)  If ( ChanceOfEffect <= 10 )     ;Do Effect 1  ElseIf ( ChanceOfEffect <= 20 )    ;Do Effect 2    ; And so on...EndEvent

You'd then script in the effect--depending how exactly you wanted to do it, for example, you could make the weapon do zero damage itself, and script the damage (for percentage health steal--I don't *think* there's a way to catch how much damage you did to an enemy, but maybe someone else knows?); That would give you the basics of the effect, and from there you could expand it out...

User avatar
Alada Vaginah
 
Posts: 3368
Joined: Sun Jun 25, 2006 8:31 pm


Return to V - Skyrim