Allow Custom Placeholders with Conditions to return a random value
Summary
As of now, writing something like
pathinggoal:
test:
Conditions:
- variableequals{var=global.tier;val=0} true
Value:
- Tier2
- Tier3
- Tier4
- Tier5
- Tier6
- Tier8
Default:
- Tier1
- Tier2
- Tier3
- Tier4
- Tier5
- Tier6
- Tier8
Will not return a random value from within the list, but the list itself in the string format [ element1, element2, element3, ... ], unlike custom placeholder without conditions
Implementation
Since that functionality might be used by someone already, for retrocompatibility's sake i suggest the addition of a Random
or Values
(with the s) field which, if specified, will return a random value between the ones listed. If only Value
is used, it will continue with the current behavior