Add coin deduction and cost adjustment logic to QS buttons in character creation tool XML
This commit is contained in:
parent
d917876fa3
commit
852da82679
@ -4014,11 +4014,18 @@
|
||||
<Value>[damage]</Value>
|
||||
</NameValueDisplay>
|
||||
</Columns>
|
||||
<Budget>[data.character.control.coins]</Budget>
|
||||
<Cost>[cost]</Cost>
|
||||
<AllowRemove>true</AllowRemove>
|
||||
<Buttons>
|
||||
<Button>
|
||||
<Text>"+QS"</Text>
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[cost] < 10000</If>
|
||||
<Do>[data.character.control.coins] - [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] < 10000</If>
|
||||
<Do>[cost] * 2</Do>
|
||||
@ -4026,6 +4033,21 @@
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
<Button>
|
||||
<Text>"-QS"</Text>
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<Do>[cost] / 2</Do>
|
||||
<Output>[cost]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<Do>[data.character.control.coins] + [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
</Buttons>
|
||||
</ListDisplay>
|
||||
<BaseToListPicker>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user