Jump to content

[SOLVED] Making an .esm that requires an .esp ?


Recommended Posts

Posted (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 by Machiavelique
Posted (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 by Neutron_rus
Posted (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 by Machiavelique
  • Machiavelique changed the title to [SOLVED] Making an .esm that requires an .esp ?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...