Jump to content

[LE] How to make a spell trigger from weapon attacks?


Recommended Posts

So I made an AoE spell based off Fire Storm but whithout a cast time which applies a bunch of buffs to nearby allies but I need it to trigger automatically when the spell owner lands a melee attack on someone. It's not an enchantment, okay? A full-blown spell that triggers from attacks and dosesn't depend on wheter or not the weapon is enchanted. I'd imagine that it should go somehow like this: write a script that makes the spell trigger when the actor to whom this script is attached lands a melee attack -> make a magic effect with this script -> make a passive ability with this effect -> slap this ability into the racial powers becasue it's a part of a custom race mod. Thing is, I don't know Papyrus and have only a very basic understading of scripts in the first place sooo... would someone please be a dearie and point out how to make this work? I'd rather avoid learning scripting just for one small mod.

Link to comment
Share on other sites

You should be able to achieve this with a Perk with a Perk Entry using Entry Point "Apply Combat Hit Spell" (see https://www.creationkit.com/index.php?title=Perk_Entry_Point). There are some notes there about which Spell Archetypes work with it, but also read the Talk page for Perk Entry Point, there is some discussion there about quirks to how it works with different Archetypes. You will probably have to play around with different implementations of the Magic Effect to get it to work correctly. Ultimately it might require a script to work how you're imagining.

Link to comment
Share on other sites

Thanks! I had to change the spell to a cloak that is applied to an enemy hit to get it work so it slightly moves the area of effect which should be centered around the player but since it's a melee attack the difference is negligible and the spell triggers properly so all is good.

Edited by JennyPricefield
Link to comment
Share on other sites

  • Recently Browsing   0 members

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