XML Docs - austinreadhoff/wordworlds GitHub Wiki

Player.xml

<Player Name="Bilbo Baggins">
    <Inventory> <!--Non-optional, but can be empty-->
        <Item Name="Pipe"> <!--FileName-->
    </Inventory
</Player>

Game.xml

<Game
    Name="The Hobbit 2: The Search for More Dragon Gold"
    Start="Bag End" <!--FileName-->
/>

Zones/AnyGivenZone.xml

Zone

<Zone Name="Bag End" 
Start="Foyer">
    <Rooms>
        <Room...
    </Rooms>
</Zone>

Room

<Room Name="Foyer"
Description="What a lovely place it is"
Discovered="true">
    <Neighbors>
        <Neighbor Direction="North" Name="Sitting Room"/>
        <Neighbor Direction="South" Name="Hobbiton|Bagshot Row"/> <!--Link to another zone, Filename|Name-->
    </Neighbors>
    <Items><!-- optional -->
        <Item Name="Handkerchief"/> <!--FileName-->
    </Items>
    <NPCs><!-- optional -->
        <NPC Name="Gandalf"/> <!--FileName-->
    </NPCs>
</Room>

Items/AnyGivenItem.xml

Item

<Item
    Name="Handkerchief"
    Description="Never leave home without it!"
    Takeable="True"<!--defaults to false-->
/>

NPCs/AnyGivenNPC.xml

NPC

<NPC
    Name="Gandalf"
    Description="A good and loyal friend.  Never late."
/>
⚠️ **GitHub.com Fallback** ⚠️