Hi all,
I'm the author of Barbarians Evolved (formerly Barbarian Lands) and I am having trouble with something that should be very simple:
Detecting whether the "Raging Barbarians" option is checked.
I've tried three different approaches. All work for me, but i'm getting reports that it's simply not working for users of my mod whichever method I try. I have no idea why.
My approaches are:
Can anyone tell me what the right way to do this is? Note that on my local machine all three methods are evaluating to true when Raging Barbarians is checked (and subsequently altering the mod's gameplay). But according to Workshop posts, checking Raging Barbarians has no effect on gameplay for some users.
Any help would be appreciated...
I'm the author of Barbarians Evolved (formerly Barbarian Lands) and I am having trouble with something that should be very simple:
Detecting whether the "Raging Barbarians" option is checked.
I've tried three different approaches. All work for me, but i'm getting reports that it's simply not working for users of my mod whichever method I try. I have no idea why.
My approaches are:
- bRagingBarbarians = Game.GetCustomOption("GAMEOPTION_RAGING_BARBARIANS")
- bRagingBarbarians = PreGame.GetGameOption("GAMEOPTION_RAGING_BARBARIANS")
- bRagingBarbarians = Game.IsOption(GameOptionTypes.GAMEOPTION_RAGING_BARBARIANS)
Can anyone tell me what the right way to do this is? Note that on my local machine all three methods are evaluating to true when Raging Barbarians is checked (and subsequently altering the mod's gameplay). But according to Workshop posts, checking Raging Barbarians has no effect on gameplay for some users.
Any help would be appreciated...