Perk Entry: Apply Combat Hit Spell

Post » Fri Nov 16, 2012 3:36 pm

What I want to do: create a perk that lets player's fists to non-lethal damage.

What I've done: I created a perk that nerfs unarmed damage down to 1 point. It does this with a calculate combat damage entry point. I set up a test cell and a button that grants the perk to the player and it works just fine.

What I want to do next: Add a spell effect that adds the damage back, but only health is above a certain level.

The Problem: The spell is not firing.

The best way to to do this is probably with some screenshots.

This is the perk window. As you can see, it's using Apply Combat Hit Spell as the entry point.

This is the same perk that worked with calculate damage, I stripped that out in case it was interfering with the spell entry point.

[img]http://i.imgur.com/rxwgy.jpg[/img]

This is the perk entry. You can just about see it's selecting the Merciful Hand spell.

[img]http://i.imgur.com/hSwtG.jpg[/img]


The spell screen looks like this

[img]http://i.imgur.com/6KRko.jpg[/img]

The effect item:

[img]http://i.imgur.com/PIeZJ.jpg[/img]

And the Magic effect itself:

[img]http://i.imgur.com/dHxMK.jpg[/img]

So, to the best of my limited knowledge, that ought to work.

The script is currently a simple messagebox:

Scriptname SSG_MercifulHand_Damage_S extends activemagiceffect  import Debugevent oninit()	MessageBox("SSG_MercifulHandDamage_ME_S loaded")EndEventevent OnEffectStart(Actor akTarget, Actor akCaster)	MessageBox("take that!")EndEvent

One worry I have is that the oninit message never seems to fire, which would suggest that the script never loads. But I have no idea why...

[edit]

The images are displaying inline in the editor, but not when I post. No idea why, but sorry about that.
User avatar
Myles
 
Posts: 3341
Joined: Sun Oct 21, 2007 12:52 pm

Return to V - Skyrim