Deleted76451128User Posted January 21, 2021 Share Posted January 21, 2021 Im making a spell that takes a filled soul gem and adds magicka to the player by draining the Soul Gem... ive got the part where the Soul Gem is drained and returned to the player as an empty Soul Gem aswell as the priority set but i cant seem to find any way to script in adding a set amount of magicka (the goal is to supply the player with Magicka in the same way that drinking a potion would work - temporary and does not exceed the cap) i dont suppose anyone's ever done something like that before have they? Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 21, 2021 Share Posted January 21, 2021 Have you tried to apply a magic effect to the player which does the same thing as the restore magicka potions? Link to comment Share on other sites More sharing options...
Deleted76451128User Posted January 21, 2021 Author Share Posted January 21, 2021 Have you tried to apply a magic effect to the player which does the same thing as the restore magicka potions?i guess the issue that has me is the fact that the "AlchRestoreMagicka" Potion isnt script based which means i cant peak at the inner workings, unfortunately the healing spell is similar in that regard. https://imgur.com/gallery/bZVvvQY Link to comment Share on other sites More sharing options...
IsharaMeradin Posted January 21, 2021 Share Posted January 21, 2021 The potion or ingredient in the base game that calls the effect has an Effect Data section (ENIT in SSEEdit) with a value. That value is the amount of magicka restored by the magic effect. You could silently add a customized potion and have the player use it automatically. The only other alternative is to use DamageActorValue with a negative amount. When used with a negative it restores rather than damages. Link to comment Share on other sites More sharing options...
Deleted76451128User Posted January 23, 2021 Author Share Posted January 23, 2021 (edited) The potion or ingredient in the base game that calls the effect has an Effect Data section (ENIT in SSEEdit) with a value. That value is the amount of magicka restored by the magic effect. You could silently add a customized potion and have the player use it automatically. The only other alternative is to use DamageActorValue with a negative amount. When used with a negative it restores rather than damages.Thanks for the reply ( my apologies for the late response ). this is exactly what i was looking for! - sort of... instead of using "DamageActorValue" there was a link in the wiki to a "RestoreActorValue" that worked exactly the way i had intended (negative numbers unfortunately don't reverse the effect however there are counterparts to said effects) thank you :smile: Edited January 23, 2021 by Guest Link to comment Share on other sites More sharing options...
Recommended Posts