1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-28 20:55:13 +03:00
Commit graph

41 commits

Author SHA1 Message Date
Pelle Nilsson ff60c5826b Changed name of format from debug to json. 2014-09-24 22:01:02 +02:00
Pelle Nilsson be2bc017bc Added trade tag.
Also documented a couple of bugs related to cost
and trade. Seems like that system needs some rethinking.
2014-03-07 21:22:10 +01:00
Pelle Nilsson dbc1dd6a8e Using new format-specific sections to make trade example make more sense. 2014-03-04 23:39:37 +01:00
Pelle Nilsson 7162851ee3 Sections tagged to only be included for specific format(s). 2014-03-04 23:35:54 +01:00
Pelle Nilsson 86667922ec Pay something (a counter, eg gold) to follow a reference.
Also refactored old code to pay for item slightly.
2014-03-04 23:02:51 +01:00
Pelle Nilsson 23999c2373 Include multiple tags. Now also exclude tags. 2014-02-28 23:23:18 +01:00
Pelle Nilsson df7ea9838a Added test for listing only sections with some tag.
Noted that unfortunately a missingto setting is required for this to work,
and the missingto section will be included in the list.
Not ideal perhaps for things like listening todo-tagged sections.
2014-02-28 22:59:10 +01:00
Pelle Nilsson 51798b3928 New list option. 2014-02-28 22:18:56 +01:00
Pelle Nilsson cf19888209 Experimental HTMLBook support (--option htmlbook when generating HTML).
See https://github.com/oreillymedia/HTMLBook.
make xmllinthtmlbook to verify examples/htmlbook.html (requires HTMLBook cloned to parent directory).
Not really sure how to use this or if it is useful in practice.
2013-11-19 19:02:13 +01:00
Pelle Nilsson 213008aa2b Templates for footnotes in gamebooks.
Only rendered well in LaTeX (PDF). Just shown in parenthesis in other formats.
Should be possible, I think, to render in RTF as well, and HTML probably.
Only needed them for PDF output at the moment though.
2013-10-08 23:35:09 +02:00
Pelle Nilsson 370530222e Merge branch 'master' of rn:git/gamebookformat 2013-08-15 21:55:42 +02:00
Pelle Nilsson d67604822e Option to add extra map-files for parsing. 2013-08-15 21:55:17 +02:00
Pelle Nilsson 6fa4245e02 Initial value for counters (something it is not reset to when revisiting).
Also fixed DOT output that was quite broken.
2013-08-04 00:16:02 +02:00
Pelle Nilsson e5723bdf70 Named references.
Instead of just [[section]] you can  have [[section][name]] and
depending on format the name will be displayed instead of or
in addition to the section number referred to.
2013-07-28 18:45:02 +02:00
Pelle Nilsson 2ce0cd6f6d Added -o to add format overrides from the options subdirectory. 2013-06-29 22:07:27 +02:00
Pelle Nilsson 47a663e014 Added example gamebook to post to BGG.
Showing only the simplest of markup features, that should be enough
to do a paragraph-driven boardgame.
2013-06-25 23:18:54 +02:00
Pelle Nilsson f1d2f933ba Cost tag that sets a price on something found. 2013-06-24 01:14:30 +02:00
Pelle Nilsson 17257b7970 Removed counter names from html and default templates.
It didn't work for writing some things, even though often correct.
2013-06-24 00:00:00 +02:00
Pelle Nilsson 9280be8e38 Disabling everything after enabled auto link.
This means that if forced to follow instructions to turn to
some section, nothing else later in the current section will
have an effect (eg counters or collections), which should
be what the player expects.
2013-06-18 23:40:27 +02:00
Pelle Nilsson 25fb3ec60c Checking counters to enable or disable HTML links. 2013-06-18 22:41:50 +02:00
Pelle Nilsson 4cfcc4888f Counters. 2013-06-18 22:21:40 +02:00
Pelle Nilsson e404e877ac Testing and fixing include only tag feature. 2013-06-18 20:38:32 +02:00
Pelle Nilsson fcf41b9869 Option to only include sections with specific tag. 2013-06-16 23:43:45 +02:00
Pelle Nilsson 3a75168d02 Split out html gamebook scripts (most of them) and style. 2013-06-16 22:12:53 +02:00
Pelle Nilsson 1fac366e19 Gamebook id to allow saved games from different games in browser.
Default id is basename of file without extension.
Override id by setting book config, as seen in format.gamebook.
2013-06-16 21:54:18 +02:00
Pelle Nilsson df76c64e7f Random link selection. Stylesheet fixes for links. Some fixes with hiding/showing. 2013-06-12 00:16:21 +02:00
Pelle Nilsson f60a650598 More formatting options. 2013-06-11 21:59:39 +02:00
Pelle Nilsson 0c0a3f7afd Basic quoting of different output formats.
Need to be improved and also add strict filtering later.
2013-06-11 00:02:29 +02:00
Pelle Nilsson 02f6459acf Book config option for max section number to use.
Not sure how useful it is since you can always force one section to have the
max number you want instead.
Anyway also added filling up with dummy sections to make shuffled numbers
on sections in the correct range from 1 to max.
2013-06-10 23:06:37 +02:00
Pelle Nilsson 3421ba7aaa Gamebook configuration (title and author for now). 2013-06-10 22:50:06 +02:00
Pelle Nilsson 54e03105e7 Default templates. Added plain text output.
Made default section template constisting of sectionheader and sectionbody.
Improved Makefile with more dependencies to rebuild examples when needed.
2013-06-10 22:15:54 +02:00
Pelle Nilsson 18c76ce0b0 Xor (ex-haselse) and Auto modifiers on secrion references. 2013-06-10 21:21:13 +02:00
Pelle Nilsson ec7a054d42 haselse hack to enable or disable one link the opposite of the previous one 2013-06-10 19:13:45 +02:00
Pelle Nilsson 98b2583f68 Inventory and codewords now both generic collections.
Some new code to handle tags with arguments.
2013-06-09 00:55:24 +02:00
Pelle Nilsson d886b26210 ff 2013-06-08 20:24:03 +02:00
Pelle Nilsson 4d1728cda8 Allow player to follow a link if not carrying a specific item. 2013-06-08 20:13:30 +02:00
Pelle Nilsson ecf8a28384 Items examples grammar in text. 2013-06-08 15:57:21 +02:00
Pelle Nilsson af2a459cc9 Items and codewords.
Gamebooks are now quite playable in HTML version. Planning to
redesign inventory and codewords to be handled the same way, to allow
adding other things that behave in a similar way to a gamebook (eg
skills or spells). Also some obvious things are missing like being
able to check if NOT having an item or codeword, or preventing a player
from finding the same item twice (if redirected back to a section where
it can be found after dropping it).
2013-06-07 23:18:33 +02:00
Pelle Nilsson 1bf91169c5 Codewords and items.
Need to think more about design and code is not pretty.
2013-06-07 00:14:06 +02:00
Pelle Nilsson f723ee0a9c Text format brackets.
Switched to text mark-up even more similar to org-mode, also more
similar to typical wiki mark-up, removing python-style format from
sections (but not from the templates).
2013-06-05 00:19:57 +02:00
Pelle Nilsson 84243fafa8 Examples structure. New examples. Verification stub. Tags parsing. 2013-06-04 22:36:09 +02:00