Update character PDF XML: add capability for weapons to track QS, technique, AT, PA, and integrate related functions
This commit is contained in:
parent
3070f2f0e2
commit
02bed3eeec
16
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
16
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
@ -11,13 +11,14 @@
|
||||
"id": "8b8db8934e706fc6",
|
||||
"type": "leaf",
|
||||
"state": {
|
||||
"type": "bases",
|
||||
"type": "markdown",
|
||||
"state": {
|
||||
"file": "wiki/weapons/Items.base",
|
||||
"viewName": "Weapons"
|
||||
"file": "wiki/weapons/Sword.md",
|
||||
"mode": "source",
|
||||
"source": false
|
||||
},
|
||||
"icon": "lucide-table",
|
||||
"title": "Items"
|
||||
"icon": "lucide-file",
|
||||
"title": "Sword"
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -184,11 +185,10 @@
|
||||
},
|
||||
"active": "8b8db8934e706fc6",
|
||||
"lastOpenFiles": [
|
||||
"wiki/weapons/Axt.md",
|
||||
"wiki/weapons/Spear.md",
|
||||
"wiki/weapons/Items.base",
|
||||
"wiki/weapons/Axt.md",
|
||||
"wiki/weapons/Sword.md",
|
||||
"wiki/weapons/Items.base",
|
||||
"wiki/weapons/Items.base",
|
||||
"wiki/costtables/Attribute A.md",
|
||||
"wiki/costtables/CostTable.base",
|
||||
"wiki/races/Races.base",
|
||||
|
||||
@ -4,6 +4,9 @@ weapon: true
|
||||
item.cost: "500"
|
||||
weapon.damage: 3W4 + 1
|
||||
item.slots: 3
|
||||
weapon.technique: Lanzen
|
||||
weapon.at: "+1"
|
||||
weapon.pa: "-2"
|
||||
---
|
||||
|
||||
# Spear
|
||||
|
||||
@ -4,6 +4,9 @@ weapon: true
|
||||
weapon.damage: 2W6 + 2 + QS
|
||||
item.cost: "750"
|
||||
item.slots: 2
|
||||
weapon.technique: Schwerter
|
||||
weapon.at: "+2"
|
||||
weapon.pa: "+1"
|
||||
---
|
||||
|
||||
# Sword
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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] < 10000</If>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[data.character.control.coins] - [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] < 10000</If>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[cost] * 2</Do>
|
||||
<Output>[cost]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[qs] < 6</If>
|
||||
<Do>[qs] + 1</Do>
|
||||
<Output>[qs]</Output>
|
||||
</Action>
|
||||
</OnClick>
|
||||
</Button>
|
||||
<Button>
|
||||
<Text>"-QS"</Text>
|
||||
<OnClick>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<If>[qs] > 0</If>
|
||||
<Do>[cost] / 2</Do>
|
||||
<Output>[cost]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[cost] > 1</If>
|
||||
<If>[qs] > 0</If>
|
||||
<Do>[data.character.control.coins] + [cost]</Do>
|
||||
<Output>[data.character.control.coins]</Output>
|
||||
</Action>
|
||||
<Action>
|
||||
<If>[qs] < 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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user