Starting Character Creation Tool

This commit is contained in:
2026-04-16 15:52:29 +02:00
parent 545394f968
commit 18bf96f7d4
5 changed files with 200 additions and 35 deletions
+25
View File
@@ -0,0 +1,25 @@
<DataStructure Name="testdata">
<Version>1</Version>
<Groups>
<Group Name="definition">
<Variables>
<String Name="name">
<Max>64</Max>
</String>
<Bool Name="ismage"/>
</Variables>
</Group>
<Group Name="race">
<Variables>
<String Name="id"/>
<String Name="name"/>
<Int Name="speed"/>
</Variables>
</Group>
<Group Name="buff">
<Variables>
<Int Name="speed"/>
</Variables>
</Group>
</Groups>
</DataStructure>
+107
View File
@@ -0,0 +1,107 @@
<Tool>
<Name>Test Tool</Name>
<AccessRule>[rule.access]</AccessRule>
<Display>Test Tool</Display>
<Description>The Test Tool</Description>
<Data>
<DataSlot Name="character">
<DataStructure>testdata</DataStructure>
</DataSlot>
</Data>
<Bases>
<BaseReference Name="races">
<Path>wiki/races/Races</Path>
</BaseReference>
</Bases>
<StartPage>"start"</StartPage>
<Pages>
<Page Name="start">
<Content>
<DataSlotLoader>
<DataSlot>[data.character]</DataSlot>
<Create>
<Rule>[rule.createcharacter]</Rule>
</Create>
<OnPostLoad>
<Actions>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnPostLoad>
<OnPostCreate>
<Actions>
<OpenPage>
<Page>"newchar"</Page>
</OpenPage>
</Actions>
</OnPostCreate>
</DataSlotLoader>
</Content>
<!--
<OnOpen/>
<OnClose/>
-->
</Page>
<Page Name="newchar">
<Content>
<GridContainer>
<Cols>3</Cols>
<Content>
<Label>
<Text>"Name"</Text>
</Label>
<StringInput>
<Output>[data.character.definition.name]</Output>
</StringInput>
<Label>
<Text>[data.character.definition.name]</Text>
</Label>
<Label>
<Text>"Rasse"</Text>
</Label>
<Label>
<Text>[data.character.race.name]</Text>
</Label>
<Label>
<Text>[data.character.race.speed]</Text>
</Label>
<Label>
<Text>"Add Speed"</Text>
</Label>
<IntInput>
<Output>[data.character.buff.speed]</Output>
</IntInput>
<BaseSingleSelect>
<Base>[base.races.Playable]</Base>
<Output>[data.character.race.id]</Output>
<Display>[file.name]</Display>
<PropertyOutputs>
<PropertyOutput>
<Property>[data.race.speed]</Property>
<Output>[data.character.race.speed]</Output>
</PropertyOutput>
<PropertyOutput>
<Property>[file.name]</Property>
<Output>[data.character.race.name]</Output>
</PropertyOutput>
</PropertyOutputs>
</BaseSingleSelect>
</Content>
</GridContainer>
<Label>
<Text>"Your race has "</Text>
</Label>
<Label>
<Text>[data.character.race.speed] + [data.character.buff.speed]</Text>
</Label>
<Label>
<Text>" speed"</Text>
</Label>
<MarkdownDisplay>
<MarkdownId>[data.character.race.id]</MarkdownId>
</MarkdownDisplay>
</Content>
</Page>
</Pages>
</Tool>