startcondition otheroption doesn't like arrays
Posted: 23 January 2021, 19:30
I have an option for which some values only work with some specific values of another option. So, it looks like this (I've simplified it, the real version is worse):
This doesn't work.
However, this works.
So, just to let you know that there's a workaround if you run into the same issue. Not sure how to properly report the bug though. The "web site" bug report is so flooded I doubt it can be used to manage framework issues.
Code: Select all
'startcondition' => [
3 => ['type' => 'otheroptionisnot', 'id' => 100, 'value' => [2,3],
'message' => totranslate('6 player draft option requires Brink of War')]
]However, this works.
Code: Select all
'startcondition' => [
3 => ['type' => 'otheroptionisnot', 'id' => 100, 'value' => 2,
'message' => totranslate('6 player draft option requires Brink of War')],
['type' => 'otheroptionisnot', 'id' => 100, 'value' => 3,
'message' => totranslate('6 player draft option requires Brink of War')]
]