SimpleTest/tools/charactercreation/charactertool.xml
2026-04-17 10:41:06 +02:00

231 lines
9.5 KiB
XML

<Tool>
<Name>charactercreator</Name>
<AccessRule>[rule.access]</AccessRule>
<Display>Character Creator</Display>
<Description>The Character Creation Tool</Description>
<Data>
<DataSlot Name="character">
<DataStructure>characterdata</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>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnPostLoad>
<OnPostCreate>
<Actions>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnPostCreate>
</DataSlotLoader>
</Content>
<!--
<OnOpen/>
<OnClose/>
-->
</Page>
<Page Name="newchar">
<Content>
<GridContainer>
<Cols>2</Cols>
<Content>
<Label>
<Text>"Name"</Text>
</Label>
<StringInput>
<Output>[data.character.definition.name]</Output>
</StringInput>
<Label>
<Text>"Rasse"</Text>
</Label>
<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>
<GridContainer>
<Cols>3</Cols>
<Content>
<Empty/>
<MarkdownDisplay>
<MarkdownId>[data.character.race.id]</MarkdownId>
</MarkdownDisplay>
<Empty/>
<Empty/>
<Empty/>
<Button>
<Text>"Weiter"</Text>
<OnClick>
<Actions>
<Action>
<Do>"profile"</Do>
<Output>[data.character.flow.currentPage]</Output>
</Action>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
</Content>
</GridContainer>
</Content>
</Page>
<Page Name="profile">
<Content>
<!-- Header Bar -->
<Bar>
<Displays>
<BarDisplay>
<Name>"Name"</Name>
<Value>[data.character.definition.name]</Value>
</BarDisplay>
<BarDisplay>
<Name>"Rasse"</Name>
<Value>[data.character.race.name]</Value>
</BarDisplay>
<BarDisplay>
<Name>"XP"</Name>
<Value>[data.character.control.xp]</Value>
</BarDisplay>
<BarDisplay>
<Name>"Kreuzer"</Name>
<Value>[data.character.control.coins]</Value>
</BarDisplay>
</Displays>
</Bar>
<HorizontalContainer>
<Content>
<Button>
<Text>"Profil"</Text>
<OnClick>
<Actions>
<Action>
<Do>"profile"</Do>
<Output>[data.character.flow.currentPage]</Output>
</Action>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
<Button>
<Text>"Grundattribute"</Text>
<OnClick>
<Actions>
<Action>
<Do>"baseattributes"</Do>
<Output>[data.character.flow.currentPage]</Output>
</Action>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
</Content>
</HorizontalContainer>
<!-- End Header Bar -->
<GridContainer>
<Cols>2</Cols>
<Content>
<Label>
<Text>"Profile Page!"</Text>
</Label>
</Content>
</GridContainer>
</Content>
</Page>
<Page Name="baseattributes">
<Content>
<!-- Header Bar -->
<Bar>
<Displays>
<BarDisplay>
<Name>"Name"</Name>
<Value>[data.character.definition.name]</Value>
</BarDisplay>
<BarDisplay>
<Name>"Rasse"</Name>
<Value>[data.character.race.name]</Value>
</BarDisplay>
<BarDisplay>
<Name>"XP"</Name>
<Value>[data.character.control.xp]</Value>
</BarDisplay>
<BarDisplay>
<Name>"Kreuzer"</Name>
<Value>[data.character.control.coins]</Value>
</BarDisplay>
</Displays>
</Bar>
<HorizontalContainer>
<Content>
<Button>
<Text>"Profil"</Text>
<OnClick>
<Actions>
<Action>
<Do>"profile"</Do>
<Output>[data.character.flow.currentPage]</Output>
</Action>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
<Button>
<Text>"Grundattribute"</Text>
<OnClick>
<Actions>
<Action>
<Do>"baseattributes"</Do>
<Output>[data.character.flow.currentPage]</Output>
</Action>
<OpenPage>
<Page>[data.character.flow.currentPage]</Page>
</OpenPage>
</Actions>
</OnClick>
</Button>
</Content>
</HorizontalContainer>
<!-- End Header Bar -->
</Content>
</Page>
</Pages>
</Tool>