Jump to content

[LE] Getting the shout a dragon used?


Bryggyth

Recommended Posts

Sorry if I did something wrong, never used the nexus forums before.

 

Anyways, I was wondering if it is possible - through scripting or otherwise - to get the shout a dragon used on the player? Or alternatively just allow the player to see what shout they got hit with and then use it?

 

I originally had a script that used onHit and akSource, but that just gave the spell the shout cast which could not be used by the player. I assume that is because they were never intended to be used outside of shouts so they have no school of magic and do not show up in the magic tab.

 

Is there a way around this? I want to make a power that would allow the player to imitate any shout they were hit with, including ones from dragons and ones from mods.

Edited by Bryggyth
Link to comment
Share on other sites

Shouts are just spells, so all you need to do is listen for the magic effects associated with them using https://www.creationkit.com/index.php?title=OnMagicEffectApply_-_ObjectReference

 

Btw, dragons don't use the same shout spells as the player. Theirs is prefixed with Dragon. For example DragonVoiceUnrelentingForceEffect

Edited by Rasikko
Link to comment
Share on other sites

How would this help me exactly? I tried messing around with the OnMagicEffectApply event in my script but I couldn't figure out how to use that to get the shout the dragon used. If I got the magic effect and caster, how would I be able to use that to find the shout? Would I hard code it in, in which case it wouldn't work with modded shouts? Or am I just missing something else I could do with it?

 

Sorry if this seems obvious to you, I'm just not really sure what I'm doing.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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