Jump to content

Weapon enchantment working on dead bodies


Recommended Posts

Hello,

 

I created a sword with the unrelenting force effect and it works, when I hit someon he takes off in the air, but when I increase the damage of the weapon some characters die in one hit and the effect does not trigger.

 

Is there a way for the enchantment to affect the dead bodies ?

 

Ideally, the effect would work on dead bodies and objects, like the Unrelenting force. Is it possible to do that when I hit somthing with the sword ?

 

some screenshots :

 

Weapon : http://www.noelshack.com/2020-26-3-1593005630-weapon.jpg

Magic Effect : http://www.noelshack.com/2020-26-3-1593005852-magic-effect.jpg

Enchantment : http://www.noelshack.com/2020-26-3-1593005875-enchantment.jpg

 

I specify that it's my first mod :smile:

Edited by Thomacle
Link to comment
Share on other sites

Looking at the script it extends active magic effect. If the game calculates the physical damage and finds the actor is dead it may not apply the magic effect at all. if it doesn't, since the script extends the active magic effect, it won't apply that, either.

 

I notice in your magic effect that you only have the 'hostile' flag checked. Normally you'd have 'detrimental' and some of the others on this kind of effect.

 

For a start you can try checking 'no death dispel'. That's what keeps the magic effect going for it's full duration after the actor dies. So with my poison enchantment I have that checked, so that the visual FX stay on the dead body until the effect times out. That at least will give the script the best chance to fire.

 

I noticed that you have no duration set on the enchantment. I'd give that a value of 1 second like other fire damage enchantments. Coupled with 'No Death Dispel', you'll have a better idea of what's working.

 

Since you have an FXfirecloak hit effect, at least then you'll see if they're setting on fire when you one-hit them.

 

Can't think of anything else.

Link to comment
Share on other sites

Hi cumbrianlad and thank you for your help.

 

I did everything you said, 'No Death Dispel' and 1 sec of Duration, but I don't really see any differences. When I hit someone, he don't setting on fire, but the 'Image Space Mod' FX triggers, even on dead bodies, which means the effect actually works. But the UnrelentingForce script doesn't trigger :sad:

 

The problem probably comes from the script itself, but I don't know how to solve it, I have no programming skills :confused: .

 

This is the UnrelentingForce script I use on my weapon : http://www.noelshack.com/2020-27-2-1593508458-script.jpg

 

I don't understand why this script works with the real UnrelentingForce on all types of characters and objects, and why it don't works when I put it in a weapon.

Edited by Thomacle
Link to comment
Share on other sites

- "UnrelentingForce script" uses the "PushActorAway()" function, which works only on live actors or while an actor is dying.

* 'OnDying' and not 'OnDeath'.


- All CK's 'Magic Effect' parameters are 'Hard Coded' and they will only work under certain pre define by the initial coder conditions.

What i'm trying to say is that some things like this needs a different approach away from the default CK functions, in fact this can only work if the whole function is "Scripted", scripted function can be coded to detect + apply something to a dead npc.

BUT:

The game engine + papyrus code have some 'Fale Safes' / 'Flaws', for example:

- You can not use a 'PushActorAway()' on a dead npc, or a 'Translate()' function, for example:

-- If you use a 'Translate()' function on a dead npc, it will translate the actor only for the period that the 'Translate()' function needs to complete, once it has finished the 'Dead Actor' will immediately return to its original position, the position/location where he died.

Edited by maxarturo
Link to comment
Share on other sites

Hi Maxarturo.

 

Just to clarify something. The unrelenting force shout definitely works on a dead body. I use it to clear dead bandits and dragons away from my player homes after random encounters. Are you saying it will work there, but not the instant the actor dies?

Link to comment
Share on other sites

Hi cumbrianlad.


I use a lot the "PushActorAway" in my mod in different applications - equipments - spells - activators - scenes... etc, and i do remember that there is an issue with this.

Right now i'm not in front of my PC to refresh my memory, I have taken a few days off and i'm far from home.

i'll come back to this in a few days.


* The "UnrelentingForce Voice" also uses the "ImpactForce" of the projectile just like an "Explosion" uses the "Force" to push "Misc Items", the "Force" of the explosion can move dead bodies.

Link to comment
Share on other sites

That's fine, Maxarturo.

 

I've never played much with unrelenting force. I've only made a different version of Kyne's Peace, so I've never looked into it. I'll take a look at it myself, when I've time. That bit about the explosion force may well answer my quesry anyway. Thinking about it I don't recall blasting dead bodies for miles with unrelenting force.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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