rerout Posted September 22, 2022 Share Posted September 22, 2022 This is probably a simple question that has been answered many times before but I wasn't able to find much with a quick search. How do I make a lesser power toggle a perk or magic effect on the player and can it be done without scripts? It doesn't have to be able to do anything, it's just being used a condition for DAR to turn an animation set on and off. I found this topic but it's 4 years old and I was hoping that maybe a better/easier solution has been worked out by now.http://forums.nexusmods.com/index.php?/topic/6381696-making-a-power-toggle-able/?hl=toggle&do=findComment&comment=57478236 Link to comment Share on other sites More sharing options...
maxarturo Posted September 22, 2022 Share Posted September 22, 2022 1) Create your 'Perk'. 2) Create your 'MagicEffect' for your lesser power. 3) In your Lesser's Power MagicEffect add your Perk in the 'Perk to Apply'. * The Perk will be added when your lesser power MagicEffect fires, but this works ONLY on the player, this will take NO effect on any other npc because perks cannot be added dynamically to actors in Skyrim's engine. Link to comment Share on other sites More sharing options...
rerout Posted September 22, 2022 Author Share Posted September 22, 2022 I've got that much but is there a way I can make it a toggle? So that once you have the perk or magic effect you can just use the power again to remove it. I know it's been done before but I don't know if it requires scripts or not. Link to comment Share on other sites More sharing options...
Sphered Posted September 22, 2022 Share Posted September 22, 2022 Toggle without script would mean you need conditions in play that you choose in a way to control it with ease IsSneaking for example. When sneaking the condition is met to apply. When no longer sneaking, it turns off since condition no longer met Change sneaking, to whatever you prefer instead. Make yourself meet that condition when you want it. Mind you, convenience toggle is not the point of conditions, so may not be the smooth experience you want. But it works in a pinch where you prefer not to use scripts Equipping a simple object which uses no biped slots, would be a solid option for a condition Link to comment Share on other sites More sharing options...
maxarturo Posted September 22, 2022 Share Posted September 22, 2022 (edited) If you mean to cast the lesser power to fire your 'function' and then after 3 sec for example to cast again the lesser power to remove your 'function', then without a script it can't be done. If you mean to cast (as explain by Sphered) the lesser power and then if by sneaking for example to 'deactivate' your 'function'/perk, then yes, it can be done as explain above, but conditions used in such a way, for example: monitoring the player when used on 'Ability Spells' or a Perk that will fire and then it will be listening for the player are checked by the engine every second. So, the more of those you have in your game the more the lag and the highest the probability of CTD especially on weaker systems and on a heavily modded game, if there are a lot of those conditions to check every second at the same time (you never know how many of those can a random user have on his game). The esiest, simplier and cheapest in using system's resources way to do this is by using a simple small script that will add and remove you 'Function'. Edited September 22, 2022 by maxarturo Link to comment Share on other sites More sharing options...
rerout Posted September 22, 2022 Author Share Posted September 22, 2022 Thanks for the advice. I never quite grasped how to do scripts back when I was working with LE, but I'll take some time and see if I can't get it working. Link to comment Share on other sites More sharing options...
greyday01 Posted September 23, 2022 Share Posted September 23, 2022 Could it be done with a script? First cast enables the perk, second cast removes the perk? Link to comment Share on other sites More sharing options...
Dashyburn Posted September 27, 2022 Share Posted September 27, 2022 (edited) Grab the spell toggle script from one of my mods here. Method. Make the magic effect and spell you want, make them constant effect ability Make a new magic effect, make it archetype script, fire and forget, place the toggle script in it, go to properties in the script and set it to the constant effect spell you previously made Make a fire and forget spell to go with your fire and forget magic effect with the script, you can set the spell as a lesser power, voice or hands to cast casting the fire and forget toggles on the constant effect via the script, casting again toggles the spell off, hope that is helpful to you, if I haven't been clear enough feel free to PM me for further detail. Edited September 27, 2022 by Dashyburn Link to comment Share on other sites More sharing options...
Recommended Posts