# Print to file (pdf, docx etc.)

**URL:** <https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717>\
**Category:** General\
**Created:** [March 1, 2020, 6:45pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717 "2020-03-01T18:45:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niall\_O\_Brien](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/niall_o_brien/32/111682_2.png) [@Niall\_O\_Brien](https://forum.choiceofgames.com/u/Niall_O_Brien)\
**Post date:** [March 1, 2020, 6:45pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/1 "2020-03-01T18:45:16Z")

</div>

Hi all, I’m just wondering if it’s possible to generate a version of a game which reads much like a CYOA book (Fighting Fantasy), with numbered sections and each option/choice has the corresponding number (page) you should skip to if you select that choice?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![kris\_g](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/kris_g/32/109382_2.png) [@kris\_g](https://forum.choiceofgames.com/u/kris_g)\
**Post date:** [March 1, 2020, 7:19pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/2 "2020-03-01T19:19:37Z")

</div>

Hi, did you ever look inside the script of any game? It will show you that what you’re asking would be very very difficult to do for more complex games. Every page has variations and its content changes depending of your previous choices. It’s not as simple as IF the choice is B then GOTO page X.

If you want to check the script of your game then add

/scenes/startup.txt

to the address of your game’s page. For example:

[https://www.choiceofgames.com/user-contributed/study-in-steampunk/scenes/startup.txt](https://www.choiceofgames.com/user-contributed/study-in-steampunk/scenes/startup.txt)

There you can find the names of the chapters so you can replace the word ‘startup’ with the name of the chapter. You have to buy the game first if you want to see it all though.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 2, 2020, 1:25am UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/3 "2020-03-02T01:25:38Z")

</div>

No, as far as I know. CoG/HG games tend to do more than stat-checks and dierolls that it’s inconvenient to try to simulate it on pen and paper. Aside from the code being unable to export games into readable pen-and-paper format, it would be an effort for an author to try to adapt their code into exportable one.

If your concern is to be able to skip certain sections of the game, you might be interested in how to code-dive the game you’re playing.

> [@How To See Other Games' Code (current info posted in OP and Post 146 on 6/18/19)](https://forum.choiceofgames.com/t/how-to-see-other-games-code-current-info-posted-in-op-and-post-146-on-6-18-19/1328):
>
> I saw an explanation of how to look at “/scenes” for a game in a long-ago Choice of Vamp comment thread. If I hadn’t seen it, it wouldn’t have occurred to me that it was possible… and I’d have missed out on a whole lot of learning that’s come from digging into how other people coded their games! [Edit: Reaperoa’s original explanation was back when mygame.js was where your scene list lived. Now it lives in startup.txt. So here are some Choice of Rebels examples to complement/update his explan…

---

<div class="post-metadata">

**Author:** ![Niall\_O\_Brien](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/niall_o_brien/32/111682_2.png) [@Niall\_O\_Brien](https://forum.choiceofgames.com/u/Niall_O_Brien)\
**Post date:** [March 7, 2020, 2:11pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/4 "2020-03-07T14:11:20Z")

</div>

Really, I just want to create a basic CYOA that I can print, but knowing that I have the power to advance my skills with ChoiceScript later on would be beneficial.  
In my case, I’d want to be able to link to other sections, shuffle them (and their numbering), have their page/section numbers updated or have the ability to lock certain sections in place etc. Is this not possible at all with ChoiceScript?

Thanks.

---

<div class="post-metadata">

**Author:** ![Szaal](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/szaal/32/112202_2.png) [@Szaal](https://forum.choiceofgames.com/u/Szaal)\
**Post date:** [March 7, 2020, 4:29pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/5 "2020-03-07T16:29:16Z")

</div>

No. CS works by arranging the sections via “labels” which can be read forward like a simple novel. These sections aren’t numbered, meaning for a linear passage, you can read them continuously, unlike FF where the passage could span a page+ and is split into multiple numbers.

If you don’t mind me asking, are you planning to write CYOA in book format?

---

<div class="post-metadata">

**Author:** ![Niall\_O\_Brien](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/niall_o_brien/32/111682_2.png) [@Niall\_O\_Brien](https://forum.choiceofgames.com/u/Niall_O_Brien)\
**Post date:** [March 7, 2020, 5:44pm UTC](https://forum.choiceofgames.com/t/print-to-file-pdf-docx-etc/74717/6 "2020-03-07T17:44:41Z")

</div>

> [@Szaal](#):
>
> are you planning to write CYOA in book format?

Yup 😁
