theimmersion Posted April 2, 2015 Share Posted April 2, 2015 (edited) Well, its two days now that im trying to figure this out. Im so tired. A quest script is changing a global value to 1 if swimming or sneaking, else its 0.I made a spell and magical effect as a constant self making StaminaRate 0 to disable stamina regeneration.The spell gets added to player (shows its added as a notification) but its not working at all when the conditions are set to check for the global value to be 1.If i as test put the condition to look for anything, like if its not -1 (!= 1), it works and shows up in the active effects menu.But it doesnt stop. I tried and googled and researched other mods two days now and just cant make it work. Unless i make a script to dispel and re add the spell every time im swimming or not, which i dont really want. Any way the effect will be on the player but only apply its effect when the condition is true?Because the script is changing the condition to 1 or 0 for many things, not just when swimming but swimming and sneaking etc. Please help and thanks. Edited April 2, 2015 by theimmersion Link to comment Share on other sites More sharing options...
lofgren Posted April 2, 2015 Share Posted April 2, 2015 Is the condition onnthe magic effect or in the ability? Conditions on the magic effect will be checked only once while conditions on the spell will be checked every second. I would also recommend modifying staminaratemult instead of staminarate, as staminarate changes based on race and is not retained across saves. Link to comment Share on other sites More sharing options...
theimmersion Posted April 2, 2015 Author Share Posted April 2, 2015 (edited) Its a WIP and ill switch to StaminaRateMult, just put any of them to make them work. Thanks for that info. Probably avoided a lot of problems already. xDNow i think i tried putting condition on only one of those to see if that works and tried even to check for -1 and 1 and reverse on both since if i put condition on both to check for -1 it works.The reason i said i think i tried is because its two days now, and i tried a lot of things. So i should put it on Spell only? Ill try that right now just in case i missed that. Thanks.Edit:I put the condition only on the spell and it worked but when i got out of sneak mode the stamina wont regenerate. The condition changes to to appropriate values but the spell doesnt stop now. If i tick the recover flag however, the regen works but it doesnt stop regen when sneaking. So confusing. BTW, if of any meaning the following flags are set. DetrimentalRecover - Ticked or Unticked, not really sure what to do with it. I ticked it just in case.No Hit EffectNo Duration - Assuming the effect should always be active until the condition changes?No Hit EventNo AreaPainlessHide in UI (unticked) - Will tick Hide in UI but for now its unticked so i can see the effects. Obviously i tried to put conditions individually on only one of them to see if it works but it didnt because at that time, recover flag was ticked. Edited April 2, 2015 by theimmersion Link to comment Share on other sites More sharing options...
theimmersion Posted April 2, 2015 Author Share Posted April 2, 2015 TEARS TO MY EYES FINALLY GOT IT WORKING! i think.I never got it to work in the first place with the conditions to troubleshoot it.I deticked the no duration flag and set it to 1 second. Now when im swimming or sneaking and loose stamina, it doesnt regenarate until i stand up or get out of the water. Thnx! All i needed was a push in the right direction. Big big thanks lofgren! Link to comment Share on other sites More sharing options...
lofgren Posted April 2, 2015 Share Posted April 2, 2015 Yeah the no duratin flag is annoying. At this point I never use it and always give cnstajt abilities a duration of 1 unless they absolutely must be able to de/activate while the game is paused. Link to comment Share on other sites More sharing options...
Recommended Posts