Final touches

This commit is contained in:
Florian 2026-06-16 17:28:53 +02:00
parent 8addd0099c
commit 9fbda257e6
2 changed files with 57 additions and 0 deletions

View File

@ -6,6 +6,55 @@
<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_fifteenattributessum">
<Actions>
<Action>
<Do>0</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.courage] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.intelligence] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.intuition] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.charisma] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.dexterity] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.agility] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.physique] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
<Action>
<If>[data.character.attributes.strength] &gt;= 15</If>
<Do>[local.sum] + 1</Do>
<Output>[local.sum]</Output>
</Action>
</Actions>
<Return>[local.sum]</Return>
</Function>
<Function Name="charlibcreate_checkpreprint">
<Actions>
<Action>
@ -17,6 +66,11 @@
<Do>false</Do>
<Output>[local.check]</Output>
</Action>
<Action>
<If>charlibcreate_fifteenattributessum() &gt; 1</If>
<Do>false</Do>
<Output>[local.check]</Output>
</Action>
</Actions>
<Return>[local.check]</Return>
</Function>

View File

@ -5308,6 +5308,9 @@
<Label>
<Text>"- Die Summe der Grundattribute darf 100 nicht überschreiten"</Text>
</Label>
<Label>
<Text>"- Maximal ein Grundattribut darf 15 oder höher sein"</Text>
</Label>
</Content>
</VerticalContainer>
<PdfGenerator Visible="[data.character.print.preprintcheck]">