Add level-up button and experience deduction logic to character creation tool XML
This commit is contained in:
parent
a5d92abd0f
commit
01dc5246dc
@ -3911,6 +3911,23 @@
|
|||||||
<Value>[level]</Value>
|
<Value>[level]</Value>
|
||||||
</NameValueDisplay>
|
</NameValueDisplay>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
<Buttons>
|
||||||
|
<Button>
|
||||||
|
<Text>"+1"</Text>
|
||||||
|
<OnClick>
|
||||||
|
<Action>
|
||||||
|
<If>[Level] < 4</If>
|
||||||
|
<Do>[level] + 1</Do>
|
||||||
|
<Output>[level]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[Level] < 4</If>
|
||||||
|
<Do>[data.character.control.xp] - 5</Do>
|
||||||
|
<Output>[data.character.control.xp]</Output>
|
||||||
|
</Action>
|
||||||
|
</OnClick>
|
||||||
|
</Button>
|
||||||
|
</Buttons>
|
||||||
</ListDisplay>
|
</ListDisplay>
|
||||||
<GridContainer>
|
<GridContainer>
|
||||||
<Cols>2</Cols>
|
<Cols>2</Cols>
|
||||||
@ -3948,6 +3965,18 @@
|
|||||||
</PropertyOutput>
|
</PropertyOutput>
|
||||||
</PropertyOutputs>
|
</PropertyOutputs>
|
||||||
</AddListEntry>
|
</AddListEntry>
|
||||||
|
<Action>
|
||||||
|
<Do>[data.character.control.xp] - 20</Do>
|
||||||
|
<Output>[data.character.control.xp]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<Do>""</Do>
|
||||||
|
<Output>[data.character.magic.new_name]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<Do>""</Do>
|
||||||
|
<Output>[data.character.magic.new_description]</Output>
|
||||||
|
</Action>
|
||||||
</OnClick>
|
</OnClick>
|
||||||
</Button>
|
</Button>
|
||||||
</Content>
|
</Content>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user