Jump to content

IsModLoaded Doesn't Work With String Variable?


Recommended Posts

I copied this out of my script:

let ModName := "Testing.esp"
print "Variable==Hardcoded: " + $(ModName == "Testing.esp")
print "Hardcoded: " + $(IsModLoaded "Testing.esp")
print "Variable: " + $(IsModLoaded ModName)

And ingame it writes out:

Variable==Hardcoded: 1
Hardcoded: 1
Variable: 0

I have no clue what i missed here, the wiki just says:

(bool) IsModLoaded modName:string

The same thing happens with GetModIndex.

I can work around this by making each mod have a quest with the info in it and then using getVariable, but my current setup doesn't require any special forms to be made so I would prefer to make it work if possible.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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