Jump to content

Can on mod access the configurations for another mod?


Recommended Posts

@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

I got it to work the way i want it to with

local 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")    end

I 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

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
 Share

×
  • Create New...