Jump to content

Photo

Weapon enchantment working on dead bodies

enchantment weapon effect dead bodies unrelenting force

  • Please log in to reply
7 replies to this topic

#1
Thomacle

Thomacle

    Stranger

  • Members
  • Pip
  • 3 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...5630-weapon.jpg

Magic Effect : http://www.noelshack...agic-effect.jpg

Enchantment : http://www.noelshack...enchantment.jpg

 

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


Edited by Thomacle, 24 June 2020 - 01:44 PM.


#2
Thomacle

Thomacle

    Stranger

  • Members
  • Pip
  • 3 posts

Nobody ?



#3
cumbrianlad

cumbrianlad

    Right turn, Clyde!

  • Premium Member
  • 1,210 posts

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.



#4
Thomacle

Thomacle

    Stranger

  • Members
  • Pip
  • 3 posts

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...8458-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, 30 June 2020 - 09:30 AM.


#5
maxarturo

maxarturo

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,740 posts
- "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, 30 June 2020 - 10:37 AM.


#6
cumbrianlad

cumbrianlad

    Right turn, Clyde!

  • Premium Member
  • 1,210 posts

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?



#7
maxarturo

maxarturo

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,740 posts
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.


#8
cumbrianlad

cumbrianlad

    Right turn, Clyde!

  • Premium Member
  • 1,210 posts

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.







Also tagged with one or more of these keywords: enchantment, weapon, effect, dead bodies, unrelenting force

Page loaded in: 1.165 seconds