Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: essaywrite7 on Mon 19/07/2021 00:32:20

Title: Put a whole public domain book? Txt file into the game?
Post by: essaywrite7 on Mon 19/07/2021 00:32:20
Would it be possible to put a whole book (public domain) into the game? I have it in the form of a text file. Do you think it’s feasible? Where you could click on each chapter and read it?
Title: Re: Put a whole public domain book? Txt file into the game?
Post by: Cassiebsg on Mon 19/07/2021 01:03:00
It is.
Title: Re: Put a whole public domain book? Txt file into the game?
Post by: Crimson Wizard on Mon 19/07/2021 08:21:04
AGS has File functions that let you read any file. Unfortunately it still does not support moving these files into the package, so it has to be placed by hand along with the game.

File functions reference:
https://adventuregamestudio.github.io/ags-manual/File.html

Alternatively, you may copy whole text into the game script, and store it as an array of Strings, for example.