RaisingThersites Posted June 8, 2022 Share Posted June 8, 2022 Hey All! Little backstory, I'm making elemental enchantments that have a hidden bonus (magiccastanotherspell script on the effect) and set a low chance in the conditions (GetRandomPercent, <= ##) to cast on an attack. For example, the ice has a small chance to cast iceform on a target when struck (paralysis + ice effect). The ice and fire (modified flamecloak) work just fine.My issue currently is with the lightning, which, ideally would cast a small electric explosion that would knock nearby npcs down. I have made the spell and it works (modified Firestorm with lightning effects + knockdown in the explosion for it), however implementing it has been tricky. The condition I've used for the other two (GetRandomPercent) doesn't seem to affect this spell, and it casts every time it hits. Could this have to do with it relying on an explosion? Anyhow, what to do?? Sidenote: I did try another route, modifying the Warmaster/Grandmaster perk (paralyzing strike on backwards power attack), figuring that limiting the spell to a power attack might change the problem. So I switched the enchanting around (replaced magiccastanotherspell with addperk on the weapon itself). It appeared to work, the effects would only happen during specified attacks, however, the explosion effect didn't seem to happen (no knockdown.) In addition it would often lock the player character and glitch out, so I voted this solution out. Link to comment Share on other sites More sharing options...
7531Leonidas Posted June 9, 2022 Share Posted June 9, 2022 There is at least one mod that modifies Dawnbreaker and its effect on undead, causing a (larger) explosion? Maybe you could check that one for casting a spell like you want. Link to comment Share on other sites More sharing options...
RaisingThersites Posted June 9, 2022 Author Share Posted June 9, 2022 Ahhh thank you! I completely forgot about Dawnbreaker. Gonna try! Link to comment Share on other sites More sharing options...
Sphered Posted June 11, 2022 Share Posted June 11, 2022 Bloodskaal blade does this on power attacks. AnimationEvents or ActorActions are what you will want to register for, to watch for weapon swings. Cast a spell of your choosing on said swing Link to comment Share on other sites More sharing options...
Recommended Posts