Gabricuss Posted October 4, 2021 Share Posted October 4, 2021 Ayo :D I've been getting into the Creation Kit after a lot of procrastination and anticipation and am in the midst of working on a mod to overhaul the effects from foods and drinks. The way how I have it designed is that there are certain "subclasses" of food - meals, rations, etc. - that receive their own health/stamina/magicka regen magic effects; I have so far have familiarized myself with magic effects and made some effects for testing purposes - the goal that I have in mind is that for the "meal subclass", the latest-used item's effects would apply, cancelling out any prior item's effects if it's under the "meal subclass". Currently, I have made the effects set up to cancel out when re-applied by separate items by keyword (i.e. the Apple Pie has seperate health regen, stamina regen, and magicka regen magic effects that all have a same keyword; the same health regen effect, but with a different duration and magnitude, is applied to Apple Cabbage stew; with the keyword applied and the "Dispel Effects with these Keywords" box checked, the effects applied from the Apple Pie are cancelled out by the Apple Cabbage Stew, thus applying the Apple Cabbage Stew's health regen effect; the same works perfectly vice versa). Here's what the current health regen effect looks like for the meal subclass: I then ran into a bump in the road - when the same item is used more than once, it stacks on itself rather than cancelling and re-applying the effects (i.e. if I use one Apple Pie, it applies all three of aforementioned effects; when more are used, the effects apply again, essentially multiplying the effects each time but with a different duration for each one, depending on when it was applied). Obviously this has big balance issues and as much fun as it's been screwing around with it in testing, you can see how it could really screw up game balance. Does anyone know how I could go about preventing this effect double-up from the same item? Currently my scripting knowledge is next-to-none since I keep letting myself get overwhelmed when I try getting into it, but I'm gonna be changing that soon. Any and all help would be greatly appreciated, and I'm more than willing to clarify anything if need be Either way, thank you for giving my post your time and I hope you have a great day :D Link to comment Share on other sites More sharing options...
rkkn Posted October 6, 2021 Share Posted October 6, 2021 (edited) I'm not 100% certain of your intended result, but the usual way to get the same magic effect from stacking with itself is to use Peak Value Modifier instead of Value Modifier. The older effect will always be dispelled and replaced with the newer one. Edited October 6, 2021 by rkkn Link to comment Share on other sites More sharing options...
Gabricuss Posted October 6, 2021 Author Share Posted October 6, 2021 I'm not 100% certain of your intended result, but the usual way to get the same magic effect from stacking with itself is to use Peak Value Modifier instead of Value Modifier. The older effect will always be dispelled and replaced with the newer one.Just swapped it to the Peak Value Modifier and this fixed it right away! I've been losing it for a week trying to figure it out - thank you big time :D Link to comment Share on other sites More sharing options...
rkkn Posted October 7, 2021 Share Posted October 7, 2021 excellent. cheers Link to comment Share on other sites More sharing options...
Recommended Posts