aggsol
Kai Lord

Thinking about gamebooks...
Posts: 53
|
Post by aggsol on May 2, 2018 13:08:11 GMT
I am parsing and starting to make sense of your XML files. For the look up and execution I understand the flow as follows: 1. Load book, objects and mechanics. 2. Reference objects with the action chart/backpack 3. Traverse the sections in the book. 4. Look up the current section in the mechanics file 5. Execute the game logic from mechanics file 6. Goto next section
|
|
|
Post by tonib on May 17, 2018 17:18:06 GMT
I am parsing and starting to make sense of your XML files. For the look up and execution I understand the flow as follows: 1. Load book, objects and mechanics. 2. Reference objects with the action chart/backpack 3. Traverse the sections in the book. 4. Look up the current section in the mechanics file 5. Execute the game logic from mechanics file 6. Goto next section Sorry the delay. Basically, yes ( github.com/tonib/kaichronicles/blob/master/doc/README-mechanics.md#how-rules-are-executed), plus: - There are mechanics rules that need to store state. Ex: If you drop an object, you don't want to drop it twice - Events: If the player picks / drops / uses some object, you will need to take care of that Please, don't take these files as canonical, they are just the format I use on Kai Chronicles: This format is very far to be perfect. I'm extending the rules on the way.
|
|