Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates MVP Game Code for Location Hierarchy
Updates the following: 1. Modifies Dice Roller to convert passed strings to int 2. Finishes XML read conversion from JSON 3. Adds new testing XML with region/location/space hierarchy 4. Begins modification of the game code to handle location hierarchy
- Loading branch information
Showing
7 changed files
with
237 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
...ameCode/_MVP_Game_Demo/Doug/bcirpg_game_mvp_2024_0204A/_userFiles/Module_Demo_003_Loc.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<root> | ||
<Region> | ||
<Name>Realm of Tempestia</Name> | ||
<Description>A mystical fantasy landscape, where characters speak often in verse!</Description> | ||
<Location> | ||
<Name>Island of Sorrows</Name> | ||
<Description>Setting for this module</Description> | ||
<Space> | ||
<Id>Boat_000</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>The game has begun! You may select from the options below. You are in a boat. You have been shipwrecked. You can leave the boat through a hatch.</Text> | ||
<Option_Labels_001>Examine Ship</Option_Labels_001> | ||
<Option_Labels_002>Climb out through hatch</Option_Labels_002> | ||
<Option_Labels_003>Play the fiddle!</Option_Labels_003> | ||
<Option_Labels_004>Rest</Option_Labels_004> | ||
<Option_Labels_005>Meditate</Option_Labels_005> | ||
<Option_GoTos_001>Boat_002</Option_GoTos_001> | ||
<Option_GoTos_002>Shore_001</Option_GoTos_002> | ||
<Option_GoTos_003>Misc_001</Option_GoTos_003> | ||
<Option_GoTos_004>Misc_002</Option_GoTos_004> | ||
<Option_GoTos_005>Misc_003</Option_GoTos_005> | ||
</Space> | ||
<Space> | ||
<Id>Boat_001</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>The boat rocks gently. You can leave the boat through a hatch. There is also now a test option.</Text> | ||
<Option_Labels_001>Examine Ship</Option_Labels_001> | ||
<Option_Labels_002>Climb out through hatch</Option_Labels_002> | ||
<Option_Labels_003>Play the fiddle!</Option_Labels_003> | ||
<Option_Labels_004>Rest</Option_Labels_004> | ||
<Option_Labels_005>Meditate</Option_Labels_005> | ||
<Option_Labels_006>Run die roll test</Option_Labels_006> | ||
<Option_GoTos_001>Boat_002</Option_GoTos_001> | ||
<Option_GoTos_002>Shore_001</Option_GoTos_002> | ||
<Option_GoTos_003>Misc_001</Option_GoTos_003> | ||
<Option_GoTos_004>Misc_002</Option_GoTos_004> | ||
<Option_GoTos_005>Misc_003</Option_GoTos_005> | ||
<Option_GoTos_006>Test_000</Option_GoTos_006> | ||
</Space> | ||
<Space> | ||
<Id>Boat_002</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>The boat is old and wrecked.</Text> | ||
<Option_Labels_001>Continue</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
<Space> | ||
<Id>Shore_001</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>You've reached the shore!</Text> | ||
<Option_Labels_001>Return to boat</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
<Space> | ||
<Id>Misc_001</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>You pull a fiddle from your sack and play it, while dancing around merrily. Great fun is had.</Text> | ||
<Option_Labels_001>Resume your quest</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
<Space> | ||
<Id>Misc_002</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>You pull out a blanket, settle your burdens and take a short rest.</Text> | ||
<Option_Labels_001>Resume your quest</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
<Space> | ||
<Id>Misc_003</Id> | ||
<Action>ShowText</Action> | ||
<A_Params></A_Params> | ||
<Text>You find a quiet corner on the boat, put down your burden, and feel the rocking of the boat. You rest mind and body, and really I'm experimenting with options and sizes of them, added via XML here. So in your meditation you have a vision: a sparrow flies high over the mountains and reveals a castle! After this reverie, you awake.</Text> | ||
<Option_Labels_001>Resume your quest</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
<Space> | ||
<Id>Test_000</Id> | ||
<Action>TestDieRollAction</Action> | ||
<A_Params>4</A_Params> | ||
<A_Params>6</A_Params> | ||
<Text>NA</Text> | ||
<Option_Labels_001>NA</Option_Labels_001> | ||
<Option_GoTos_001>Boat_001</Option_GoTos_001> | ||
</Space> | ||
</Location> | ||
</Region> | ||
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters