Update Magic Page and PDF Generation
This commit is contained in:
parent
a36f4a1902
commit
c37bf59cf5
3
WorldDawnSimpleTest/.obsidian/types.json
vendored
3
WorldDawnSimpleTest/.obsidian/types.json
vendored
@ -25,6 +25,7 @@
|
|||||||
"armor.evade": "number",
|
"armor.evade": "number",
|
||||||
"armor.slots": "number",
|
"armor.slots": "number",
|
||||||
"shield": "checkbox",
|
"shield": "checkbox",
|
||||||
"magic": "checkbox"
|
"magic": "checkbox",
|
||||||
|
"magicitem": "checkbox"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
28
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
28
WorldDawnSimpleTest/.obsidian/workspace.json
vendored
@ -13,11 +13,25 @@
|
|||||||
"state": {
|
"state": {
|
||||||
"type": "bases",
|
"type": "bases",
|
||||||
"state": {
|
"state": {
|
||||||
"file": "wiki/Magie/Magic.base",
|
"file": "wiki/weapons/Items.base",
|
||||||
"viewName": "Categories"
|
"viewName": "Magicitems"
|
||||||
},
|
},
|
||||||
"icon": "lucide-table",
|
"icon": "lucide-table",
|
||||||
"title": "Magic"
|
"title": "Items"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "d6119cdcde5a0576",
|
||||||
|
"type": "leaf",
|
||||||
|
"state": {
|
||||||
|
"type": "markdown",
|
||||||
|
"state": {
|
||||||
|
"file": "wiki/Magie/Items/Sylyl Ring.md",
|
||||||
|
"mode": "source",
|
||||||
|
"source": false
|
||||||
|
},
|
||||||
|
"icon": "lucide-file",
|
||||||
|
"title": "Sylyl Ring"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -198,11 +212,14 @@
|
|||||||
},
|
},
|
||||||
"active": "cbd86a1333362c95",
|
"active": "cbd86a1333362c95",
|
||||||
"lastOpenFiles": [
|
"lastOpenFiles": [
|
||||||
"Untitled.base",
|
"wiki/Magie/Items/Sylyl Ring.md",
|
||||||
|
"wiki/weapons/Items.base",
|
||||||
|
"wiki/Magie/Items/Laute.md",
|
||||||
"wiki/Magie/Magic.base",
|
"wiki/Magie/Magic.base",
|
||||||
|
"wiki/Magie/Items",
|
||||||
|
"Untitled.base",
|
||||||
"wiki/weapons/Holzschild.md",
|
"wiki/weapons/Holzschild.md",
|
||||||
"wiki/Magie/Kampfmagie.md",
|
"wiki/Magie/Kampfmagie.md",
|
||||||
"wiki/weapons/Items.base",
|
|
||||||
"wiki/Magie",
|
"wiki/Magie",
|
||||||
"wiki/weapons/Sword.md",
|
"wiki/weapons/Sword.md",
|
||||||
"wiki/weapons/Stahlschild.md",
|
"wiki/weapons/Stahlschild.md",
|
||||||
@ -226,7 +243,6 @@
|
|||||||
"wiki/Test123.md",
|
"wiki/Test123.md",
|
||||||
"wiki/Authbased.md",
|
"wiki/Authbased.md",
|
||||||
"Untitled.md",
|
"Untitled.md",
|
||||||
"wiki/weapons",
|
|
||||||
"wiki/twomain/Hallo Welt.md",
|
"wiki/twomain/Hallo Welt.md",
|
||||||
"wiki/twomain/Zweiter Hallo Welt.md",
|
"wiki/twomain/Zweiter Hallo Welt.md",
|
||||||
"adventures/Adventure.md",
|
"adventures/Adventure.md",
|
||||||
|
|||||||
8
WorldDawnSimpleTest/wiki/Magie/Items/Laute.md
Normal file
8
WorldDawnSimpleTest/wiki/Magie/Items/Laute.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
item: true
|
||||||
|
item.cost: "500"
|
||||||
|
item.slots: 2
|
||||||
|
magicitem.source: Musik
|
||||||
|
magicitem.value: "+2"
|
||||||
|
magicitem: true
|
||||||
|
---
|
||||||
8
WorldDawnSimpleTest/wiki/Magie/Items/Sylyl Ring.md
Normal file
8
WorldDawnSimpleTest/wiki/Magie/Items/Sylyl Ring.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
item: true
|
||||||
|
item.cost: "2341"
|
||||||
|
item.slots: 1
|
||||||
|
magicitem.source: Objekt
|
||||||
|
magicitem.value: "+5"
|
||||||
|
magicitem: true
|
||||||
|
---
|
||||||
@ -70,3 +70,14 @@ views:
|
|||||||
- item.slots
|
- item.slots
|
||||||
- armor.evade
|
- armor.evade
|
||||||
- armor.armor
|
- armor.armor
|
||||||
|
- type: table
|
||||||
|
name: Magicitems
|
||||||
|
filters:
|
||||||
|
and:
|
||||||
|
- magicitem == true
|
||||||
|
order:
|
||||||
|
- file.name
|
||||||
|
- magicitem.source
|
||||||
|
- magicitem.value
|
||||||
|
- item.cost
|
||||||
|
- item.slots
|
||||||
|
|||||||
@ -333,5 +333,94 @@
|
|||||||
</AddListEntry>
|
</AddListEntry>
|
||||||
</Actions>
|
</Actions>
|
||||||
</Function>
|
</Function>
|
||||||
|
|
||||||
|
<Function Name="charlib_magic_willpower">
|
||||||
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<Do>-2</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 1</If>
|
||||||
|
<Do>-1</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 4</If>
|
||||||
|
<Do>0</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 7</If>
|
||||||
|
<Do>1</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 10</If>
|
||||||
|
<Do>2</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 14</If>
|
||||||
|
<Do>3</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.talents.willpower] >= 18</If>
|
||||||
|
<Do>4</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
</Actions>
|
||||||
|
<Return>[local.val]</Return>
|
||||||
|
</Function>
|
||||||
|
<Function Name="charlib_magic_talent">
|
||||||
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<Do>0</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 1</If>
|
||||||
|
<Do>1</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 3</If>
|
||||||
|
<Do>2</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 5</If>
|
||||||
|
<Do>3</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 7</If>
|
||||||
|
<Do>4</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 10</If>
|
||||||
|
<Do>5</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 13</If>
|
||||||
|
<Do>6</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 16</If>
|
||||||
|
<Do>7</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[params.0] >= 18</If>
|
||||||
|
<Do>8</Do>
|
||||||
|
<Output>[local.val]</Output>
|
||||||
|
</Action>
|
||||||
|
</Actions>
|
||||||
|
<Return>[local.val]</Return>
|
||||||
|
</Function>
|
||||||
</Functions>
|
</Functions>
|
||||||
</Library>
|
</Library>
|
||||||
@ -5569,5 +5569,250 @@
|
|||||||
</RowLayout>
|
</RowLayout>
|
||||||
</Body>
|
</Body>
|
||||||
</Page>
|
</Page>
|
||||||
|
<!-- Magie -->
|
||||||
|
<Page Visible="[data.character.definition.ismage]">
|
||||||
|
<Header>
|
||||||
|
<RowLayout>
|
||||||
|
<Content>
|
||||||
|
<Label Styles="HeaderItem;Italic">
|
||||||
|
<Text>"Heldenbogen"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="HeaderItem">
|
||||||
|
<Text>"-"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="HeaderItem">
|
||||||
|
<Text>[data.character.definition.name]</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="HeaderItem">
|
||||||
|
<Text>"-"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="HeaderItem;Bold">
|
||||||
|
<Text>"Magie"</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</RowLayout>
|
||||||
|
</Header>
|
||||||
|
<Body>
|
||||||
|
<RowLayout Styles="Page">
|
||||||
|
<Content>
|
||||||
|
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label Styles="InventoryHeader">
|
||||||
|
<Text>"Magiequellen"</Text>
|
||||||
|
</Label>
|
||||||
|
<TableLayout Styles="TableChildren;GapChildren">
|
||||||
|
<Columns>
|
||||||
|
<Column>
|
||||||
|
<Width>80</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
<Column>
|
||||||
|
<Width>20</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
</Columns>
|
||||||
|
<Content>
|
||||||
|
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Quelle"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Wert"</Text>
|
||||||
|
</Label>
|
||||||
|
|
||||||
|
|
||||||
|
<Label Styles="BiggerLowerBorder">
|
||||||
|
<Text>"Angeborene Magie</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="BiggerLowerBorder">
|
||||||
|
<Text>charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Willenskraft"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_willpower()</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"/"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_willpower() + charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Objekt"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>"s.Obj."</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Gesang"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.singing])</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"/"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.singing]) + charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Musik"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.music])</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"/"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.music]) + charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Tanz"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.dancing])</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"/"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.dancing]) + charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Tanz"</Text>
|
||||||
|
</Label>
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.drawing])</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"/"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>charlib_magic_talent([data.character.talent.drawing]) + charlib_intrinsicmagic()</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</Content>
|
||||||
|
</TableLayout>
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
<ColumnLayout>
|
||||||
|
<Content>
|
||||||
|
|
||||||
|
<Label Styles="InventoryHeader">
|
||||||
|
<Text>"Mana"</Text>
|
||||||
|
</Label>
|
||||||
|
<TableLayout Styles="TableChildren;GapChildren">
|
||||||
|
<Columns>
|
||||||
|
<Column>
|
||||||
|
<Width>50</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
<Column>
|
||||||
|
<Width>50</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
</Columns>
|
||||||
|
<Content>
|
||||||
|
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Aktuell"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Max"</Text>
|
||||||
|
</Label>
|
||||||
|
|
||||||
|
</Content>
|
||||||
|
</TableLayout>
|
||||||
|
|
||||||
|
<Label Styles="InventoryHeader">
|
||||||
|
<Text>"Magische Objekte"</Text>
|
||||||
|
</Label>
|
||||||
|
<TableLayout Styles="TableChildren;GapChildren">
|
||||||
|
<Columns>
|
||||||
|
<Column>
|
||||||
|
<Width>40</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
<Column>
|
||||||
|
<Width>40</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
<Column>
|
||||||
|
<Width>20</Width>
|
||||||
|
<Percent>true</Percent>
|
||||||
|
</Column>
|
||||||
|
</Columns>
|
||||||
|
<Content>
|
||||||
|
|
||||||
|
<Label Styles="InventoryHeader">
|
||||||
|
<Text>"Name"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Quelle"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label Styles="TalentTableHeader">
|
||||||
|
<Text>"Wert"</Text>
|
||||||
|
</Label>
|
||||||
|
|
||||||
|
<Label>
|
||||||
|
<Text>"Laute"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"Musik"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"+2"</Text>
|
||||||
|
</Label>
|
||||||
|
|
||||||
|
</Content>
|
||||||
|
</TableLayout>
|
||||||
|
|
||||||
|
</Content>
|
||||||
|
</ColumnLayout>
|
||||||
|
|
||||||
|
</Content>
|
||||||
|
</RowLayout>
|
||||||
|
</Body>
|
||||||
|
</Page>
|
||||||
</Pages>
|
</Pages>
|
||||||
</Pdf>
|
</Pdf>
|
||||||
@ -44,18 +44,6 @@
|
|||||||
</OpenPage>
|
</OpenPage>
|
||||||
</OnPostLoad>
|
</OnPostLoad>
|
||||||
<OnPostCreate>
|
<OnPostCreate>
|
||||||
<Action>
|
|
||||||
<Do>Truncate([data.character.race.minheight] + [data.character.race.maxheight] / 2)</Do>
|
|
||||||
<Output>[data.character.definition.height]</Output>
|
|
||||||
</Action>
|
|
||||||
<Action>
|
|
||||||
<Do>Truncate([data.character.race.minweight] + [data.character.race.maxweight] / 2)</Do>
|
|
||||||
<Output>[data.character.definition.weight]</Output>
|
|
||||||
</Action>
|
|
||||||
<Action>
|
|
||||||
<Do>Truncate([data.character.race.minage] + [data.character.race.maxage] / 2)</Do>
|
|
||||||
<Output>[data.character.definition.age]</Output>
|
|
||||||
</Action>
|
|
||||||
<OpenPage>
|
<OpenPage>
|
||||||
<Page>[data.character.flow.currentPage]</Page>
|
<Page>[data.character.flow.currentPage]</Page>
|
||||||
</OpenPage>
|
</OpenPage>
|
||||||
@ -136,6 +124,18 @@
|
|||||||
<Button>
|
<Button>
|
||||||
<Text>"Weiter"</Text>
|
<Text>"Weiter"</Text>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
|
<Action>
|
||||||
|
<Do>Truncate([data.character.race.minheight] + [data.character.race.maxheight] / 2)</Do>
|
||||||
|
<Output>[data.character.definition.height]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<Do>Truncate([data.character.race.minweight] + [data.character.race.maxweight] / 2)</Do>
|
||||||
|
<Output>[data.character.definition.weight]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<Do>Truncate([data.character.race.minage] + [data.character.race.maxage] / 2)</Do>
|
||||||
|
<Output>[data.character.definition.age]</Output>
|
||||||
|
</Action>
|
||||||
<Action>
|
<Action>
|
||||||
<Do>"profile"</Do>
|
<Do>"profile"</Do>
|
||||||
<Output>[data.character.flow.currentPage]</Output>
|
<Output>[data.character.flow.currentPage]</Output>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user