Update Magic Page and PDF Generation
This commit is contained in:
parent
6f5986992f
commit
359894a13b
@ -114,8 +114,30 @@
|
|||||||
</Function>
|
</Function>
|
||||||
|
|
||||||
<Function Name="charlib_checkpreprint">
|
<Function Name="charlib_checkpreprint">
|
||||||
<Return>true</Return>
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<Do>true</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.control.xp] > 10</If>
|
||||||
|
<Do>false</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.control.xp] < 0</If>
|
||||||
|
<Do>false</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>[data.character.control.coins] < 0</If>
|
||||||
|
<Do>false</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
</Actions>
|
||||||
|
<Return>[local.check]</Return>
|
||||||
</Function>
|
</Function>
|
||||||
|
|
||||||
<Function Name="charlib_maxhp">
|
<Function Name="charlib_maxhp">
|
||||||
<Return>[data.character.attributes.physique] + [data.character.attributes.physique] + [data.character.attributes.strength] + [data.character.race.healthbonus]</Return>
|
<Return>[data.character.attributes.physique] + [data.character.attributes.physique] + [data.character.attributes.strength] + [data.character.race.healthbonus]</Return>
|
||||||
</Function>
|
</Function>
|
||||||
|
|||||||
@ -3,8 +3,22 @@
|
|||||||
<Function Name="charlib_midval">
|
<Function Name="charlib_midval">
|
||||||
<Return>Truncate(([param.0] + [param.1] + [param.2]) / 3)</Return>
|
<Return>Truncate(([param.0] + [param.1] + [param.2]) / 3)</Return>
|
||||||
</Function>
|
</Function>
|
||||||
|
<Function Name="charlib_attributesum">
|
||||||
|
<Return>[data.character.attributes.courage] + [data.character.attributes.intelligence] + [data.character.attributes.intuition] + [data.character.attributes.charisma] + [data.character.attributes.dexterity] + [data.character.attributes.agility] + [data.character.attributes.physique] + [data.character.attributes.strength]</Return>
|
||||||
|
</Function>
|
||||||
<Function Name="charlibcreate_checkpreprint">
|
<Function Name="charlibcreate_checkpreprint">
|
||||||
<Return>true</Return>
|
<Actions>
|
||||||
|
<Action>
|
||||||
|
<Do>true</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
<Action>
|
||||||
|
<If>charlib_attributesum() > 100</If>
|
||||||
|
<Do>false</Do>
|
||||||
|
<Output>[local.check]</Output>
|
||||||
|
</Action>
|
||||||
|
</Actions>
|
||||||
|
<Return>[local.check]</Return>
|
||||||
</Function>
|
</Function>
|
||||||
</Functions>
|
</Functions>
|
||||||
</Library>
|
</Library>
|
||||||
@ -4095,13 +4095,6 @@
|
|||||||
<GridContainer>
|
<GridContainer>
|
||||||
<Cols>3</Cols>
|
<Cols>3</Cols>
|
||||||
<Content>
|
<Content>
|
||||||
<Label>
|
|
||||||
<Text>"Angeborene Magie"</Text>
|
|
||||||
</Label>
|
|
||||||
<Label>
|
|
||||||
<Text>charlib_intrinsicmagic()</Text>
|
|
||||||
</Label>
|
|
||||||
<Empty/>
|
|
||||||
|
|
||||||
<Label>
|
<Label>
|
||||||
<Text>"Mana"</Text>
|
<Text>"Mana"</Text>
|
||||||
@ -4817,6 +4810,10 @@
|
|||||||
<Level>2</Level>
|
<Level>2</Level>
|
||||||
<Text>"Fernkampfwaffen"</Text>
|
<Text>"Fernkampfwaffen"</Text>
|
||||||
</Header>
|
</Header>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Besitz"</Text>
|
||||||
|
</Header>
|
||||||
<ListDisplay>
|
<ListDisplay>
|
||||||
<List>[data.character.items.ranged]</List>
|
<List>[data.character.items.ranged]</List>
|
||||||
<Columns>
|
<Columns>
|
||||||
@ -4895,6 +4892,10 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Buttons>
|
</Buttons>
|
||||||
</ListDisplay>
|
</ListDisplay>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Auswahl"</Text>
|
||||||
|
</Header>
|
||||||
<BaseToListPicker>
|
<BaseToListPicker>
|
||||||
<List>[data.character.items.ranged]</List>
|
<List>[data.character.items.ranged]</List>
|
||||||
<PropertyOutputs>
|
<PropertyOutputs>
|
||||||
@ -4963,6 +4964,10 @@
|
|||||||
<Level>2</Level>
|
<Level>2</Level>
|
||||||
<Text>"Rüstung"</Text>
|
<Text>"Rüstung"</Text>
|
||||||
</Header>
|
</Header>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Besitz"</Text>
|
||||||
|
</Header>
|
||||||
<ListDisplay>
|
<ListDisplay>
|
||||||
<List>[data.character.items.armor]</List>
|
<List>[data.character.items.armor]</List>
|
||||||
<Columns>
|
<Columns>
|
||||||
@ -5037,6 +5042,10 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Buttons>
|
</Buttons>
|
||||||
</ListDisplay>
|
</ListDisplay>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Auswahl"</Text>
|
||||||
|
</Header>
|
||||||
<BaseToListPicker>
|
<BaseToListPicker>
|
||||||
<List>[data.character.items.armor]</List>
|
<List>[data.character.items.armor]</List>
|
||||||
<PropertyOutputs>
|
<PropertyOutputs>
|
||||||
@ -5097,6 +5106,10 @@
|
|||||||
<Level>2</Level>
|
<Level>2</Level>
|
||||||
<Text>"Schilde"</Text>
|
<Text>"Schilde"</Text>
|
||||||
</Header>
|
</Header>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Besitz"</Text>
|
||||||
|
</Header>
|
||||||
<ListDisplay>
|
<ListDisplay>
|
||||||
<List>[data.character.items.shield]</List>
|
<List>[data.character.items.shield]</List>
|
||||||
<Columns>
|
<Columns>
|
||||||
@ -5167,6 +5180,10 @@
|
|||||||
</Button>
|
</Button>
|
||||||
</Buttons>
|
</Buttons>
|
||||||
</ListDisplay>
|
</ListDisplay>
|
||||||
|
<Header>
|
||||||
|
<Level>3</Level>
|
||||||
|
<Text>"Auswahl"</Text>
|
||||||
|
</Header>
|
||||||
<BaseToListPicker>
|
<BaseToListPicker>
|
||||||
<List>[data.character.items.shield]</List>
|
<List>[data.character.items.shield]</List>
|
||||||
<PropertyOutputs>
|
<PropertyOutputs>
|
||||||
@ -5274,9 +5291,22 @@
|
|||||||
</OpenPage>
|
</OpenPage>
|
||||||
</OnClick>
|
</OnClick>
|
||||||
</Button>
|
</Button>
|
||||||
<Label Visible="![data.character.print.preprintcheck]">
|
<VerticalContainer Visible="![data.character.print.preprintcheck]">
|
||||||
<Text>"Pre print check failed"</Text>
|
<Content>
|
||||||
</Label>
|
<Label>
|
||||||
|
<Text>"Eine der folgenden Bedingungen trifft nicht zu:"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"- Die restliche XP darf nicht negativ sein und 10 nicht überschreiten"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"- Die Kreuzer dürfen nicht negativ sein"</Text>
|
||||||
|
</Label>
|
||||||
|
<Label>
|
||||||
|
<Text>"- Die Summe der Grundattribute darf 100 nicht überschreiten"</Text>
|
||||||
|
</Label>
|
||||||
|
</Content>
|
||||||
|
</VerticalContainer>
|
||||||
<PdfGenerator Visible="[data.character.print.preprintcheck]">
|
<PdfGenerator Visible="[data.character.print.preprintcheck]">
|
||||||
<Pdf>"charpdf"</Pdf>
|
<Pdf>"charpdf"</Pdf>
|
||||||
</PdfGenerator>
|
</PdfGenerator>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user