Sort-Spion
New member
Is it possible to make a dynamic override?
For example, if a given ruleset is chosen, a given stat should be raised by 1. Or if another ruleset is chosen, the text cost should be 10 higher than usual.
Particularly the last case is of interest to me, especially with more rulesets that individually changes the text cost be some amount. E.g. say three rulesets are defined (A, B and C), and any number of these ruleset can be chosen.
A unit costs 50 pts. If ruleset A or B is chosen, the unit becomes 5 pts. more expensive, and if ruleset C is chosen it becomes 10 pts. more expensive.
I know it could be written as
<override index="0" textcost="55">
<condition>ruleset.A | ruleset.B</condition>
</override>
<override index="1" priority="101" textcost="60">
<condition>ruleset.C | (ruleset.A & ruleset.B)</condition>
</override>
<override index="2" priority="102" textcost="65">
<condition>(ruleset.A | ruleset.B) & ruleset.C</condition>
</override>
<override index="3" priority="103" textcost="70">
<condition>ruleset.A & ruleset.B & ruleset.C</condition>
</override>
but this quickly becomes very tedious. Is it possible to do something like:
<override index="0" textcost="@text+5">
<condition>ruleset.A</condition>
</override>
<override index="1" textcost="@text+5">
<condition>ruleset.B</condition>
</override>
<override index="2" textcost="@text+10">
<condition>ruleset.C</condition>
</override>
or similarly with @cost to avoid problems with formatting?
For example, if a given ruleset is chosen, a given stat should be raised by 1. Or if another ruleset is chosen, the text cost should be 10 higher than usual.
Particularly the last case is of interest to me, especially with more rulesets that individually changes the text cost be some amount. E.g. say three rulesets are defined (A, B and C), and any number of these ruleset can be chosen.
A unit costs 50 pts. If ruleset A or B is chosen, the unit becomes 5 pts. more expensive, and if ruleset C is chosen it becomes 10 pts. more expensive.
I know it could be written as
<override index="0" textcost="55">
<condition>ruleset.A | ruleset.B</condition>
</override>
<override index="1" priority="101" textcost="60">
<condition>ruleset.C | (ruleset.A & ruleset.B)</condition>
</override>
<override index="2" priority="102" textcost="65">
<condition>(ruleset.A | ruleset.B) & ruleset.C</condition>
</override>
<override index="3" priority="103" textcost="70">
<condition>ruleset.A & ruleset.B & ruleset.C</condition>
</override>
but this quickly becomes very tedious. Is it possible to do something like:
<override index="0" textcost="@text+5">
<condition>ruleset.A</condition>
</override>
<override index="1" textcost="@text+5">
<condition>ruleset.B</condition>
</override>
<override index="2" textcost="@text+10">
<condition>ruleset.C</condition>
</override>
or similarly with @cost to avoid problems with formatting?