a) `if (game.modules.get("module-name")?.active){}` b) `choices` is just a pair of keys and strings

a) if (game.modules.get("module-name")?.active){} b) choices is just a pair of keys and strings much like a dictionary. In this case you might have something like this:
choices: {
module1: "Red Theme",
module2: "Blue Theme",
module3: "Green Theme"
}
choices: {
module1: "Red Theme",
module2: "Blue Theme",
module3: "Green Theme"
}
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?