afetogbo Posted March 3, 2015 Share Posted March 3, 2015 I want to check the setting from one mod and use that variable in my mod. is this possible? Link to comment Share on other sites More sharing options...
rezecib Posted March 3, 2015 Share Posted March 3, 2015 @afetogbo, Apparently, yes:local KnownModIndex = GLOBAL.KnownModIndexlocal modname = "workshop-343753877"if KnownModIndex:IsModEnabled(modname) then print("Status Announcements is enabled, time for some shenanigans >:D") local EXPLICIT = GLOBAL.GetModConfigData("EXPLICIT", modname) if EXPLICIT then print("filthy cheating cheaters cheating to get numbers they shouldn't have") else print("good, this person must be a purist") endend Link to comment Share on other sites More sharing options...
afetogbo Posted March 3, 2015 Author Share Posted March 3, 2015 I got it to work the way i want it to withlocal KnownModIndex = GLOBAL.KnownModIndexlocal modname = "workshop-343753877"if KnownModIndex:IsModEnabled(modname) then print("workshop-343753877 Compatibility Enabled") EXPLICIT = GLOBAL.GetModConfigData("EXPLICIT", modname) else EXPLICIT_rate = 0 print("workshop-343753877 Compatibility disabled") endI then can use the value of explicit.so for example I can use the value of santamod candycane runspeed for a wintergreen version if greater then 0 Link to comment Share on other sites More sharing options...
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