Update character PDF XML: add capability for weapons to track QS, technique, AT, PA, and integrate related functions

This commit is contained in:
2026-06-12 14:15:57 +02:00
parent 3070f2f0e2
commit 02bed3eeec
6 changed files with 113 additions and 12 deletions
@@ -190,6 +190,10 @@
<String Name="name"/>
<Int Name="cost"/>
<String Name="damage"/>
<Int Name="qs"/>
<String Name="fighttechnique"/>
<String Name="at"/>
<String Name="pa"/>
</Variables>
</List>
</Variables>
+61
View File
@@ -3930,6 +3930,67 @@
</TableLayout>
</Content>
</TableLayout>
<TableLayout>
<Columns>8</Columns>
<Content>
<Label Styles="TalentTableHeader">
<Text>"Name"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"QS M"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"QS A"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"Kampftechnik"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"Schaden"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"AT"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"PA"</Text>
</Label>
<Label Styles="TalentTableHeader">
<Text>"Preis"</Text>
</Label>
<Foreach>
<List>[data.character.items.melee]</List>
<Content>
<Label>
<Text>[name]</Text>
</Label>
<Label>
<Text>[qs]</Text>
</Label>
<Label>
<Text>""</Text>
</Label>
<Label>
<Text>[fighttechnique]</Text>
</Label>
<Label>
<Text>[damage]</Text>
</Label>
<Label>
<Text>[at]</Text>
</Label>
<Label>
<Text>[pa]</Text>
</Label>
<Label>
<Text>[cost]</Text>
</Label>
</Content>
</Foreach>
</Content>
</TableLayout>
</Content>
</ColumnLayout>
</Body>
+34 -4
View File
@@ -4240,6 +4240,10 @@
<Name>"Name"</Name>
<Value>[name]</Value>
</NameValueDisplay>
<NameValueDisplay>
<Name>"QS"</Name>
<Value>[qs]</Value>
</NameValueDisplay>
<NameValueDisplay>
<Name>"Kosten"</Name>
<Value>[cost]</Value>
@@ -4257,30 +4261,40 @@
<Text>"+QS"</Text>
<OnClick>
<Action>
<If>[cost] &lt; 10000</If>
<If>[qs] &lt; 6</If>
<Do>[data.character.control.coins] - [cost]</Do>
<Output>[data.character.control.coins]</Output>
</Action>
<Action>
<If>[cost] &lt; 10000</If>
<If>[qs] &lt; 6</If>
<Do>[cost] * 2</Do>
<Output>[cost]</Output>
</Action>
<Action>
<If>[qs] &lt; 6</If>
<Do>[qs] + 1</Do>
<Output>[qs]</Output>
</Action>
</OnClick>
</Button>
<Button>
<Text>"-QS"</Text>
<OnClick>
<Action>
<If>[cost] &gt; 1</If>
<If>[qs] &gt; 0</If>
<Do>[cost] / 2</Do>
<Output>[cost]</Output>
</Action>
<Action>
<If>[cost] &gt; 1</If>
<If>[qs] &gt; 0</If>
<Do>[data.character.control.coins] + [cost]</Do>
<Output>[data.character.control.coins]</Output>
</Action>
<Action>
<If>[qs] &lt; 0</If>
<Do>[qs] - 1</Do>
<Output>[qs]</Output>
</Action>
</OnClick>
</Button>
</Buttons>
@@ -4300,6 +4314,22 @@
<Property>[weapon.damage]</Property>
<Output>[damage]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>1</Property>
<Output>[qs]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[weapon.technique]</Property>
<Output>[fighttechnique]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[weapon.at]</Property>
<Output>[at]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[weapon.pa]</Property>
<Output>[pa]</Output>
</PropertyOutput>
</PropertyOutputs>
<Columns>
<NameValueDisplay>