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>
|
||||
</NameValueDisplay>
|
||||
</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>
|
||||
<GridContainer>
|
||||
<Cols>2</Cols>
|
||||
@ -3948,6 +3965,18 @@
|
||||
</PropertyOutput>
|
||||
</PropertyOutputs>
|
||||
</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>
|
||||
</Button>
|
||||
</Content>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user