Machiavelique Posted July 8, 2023 Posted July 8, 2023 (edited) I'd like sexoutStruggle.esm can use functions and read variables from Stamina.esp but without modify Stamina.esp, is it possible ? I can always ask fallout2AM to add the ESM flag to stamina.esp but it's been 7 years since this mod was last updated, so I doubt it will happen. I may have a solution by changing sexoutStruggle.esm to .esp (it seems to work) but it will cause difficulties to continue developing SexoutStuggle and difficulties for other modders to use SexoutStruggle in the future. If you've ever faced this problem and had a solution (or know it's totally impossible), it would be appreciated. Edited July 8, 2023 by Machiavelique
Neutron_rus Posted July 8, 2023 Posted July 8, 2023 (edited) You can use IsModLoaded to check if "Stamina.esp" is enabled, then by using GetFormFromMod and GetVariable you can get stuff that you need (use quest id for variables, script id for calling functions), to modife it use SetVariable https://geckwiki.com/index.php?title=IsModLoaded https://geckwiki.com/index.php?title=GetFormFromMod https://geckwiki.com/index.php?title=GetVariable https://geckwiki.com/index.php?title=SetVariable this way you don't have to make it master at all Edited July 8, 2023 by Neutron_rus 1
Machiavelique Posted July 8, 2023 Author Posted July 8, 2023 (edited) Amazing! I hadn't found these functions. I did a test to get the Stamina value in Stamina.esp from SexoutStruggle and it works very well. Thanks, you've been a great help. ? Edited July 8, 2023 by Machiavelique
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now