Book
Client only. Shows your own pages on the game's reading screen, on this machine. Pages use the game's book markup. Events are bookOpened, bookClosed with the reason 'player', 'script', 'failed' or 'sessionOver', and bookTextChanged and bookWritingEnded while the player writes.
book.open()
Book.open(options)Opens a book and returns its id. Returns null if there is no body yet, a book is already open, or the player cannot read here; see lastFailure.
book.close()
Book.close()Closes the open book. Returns false if none is open.
book.setReadable()
Book.setReadable(value)Changes how much of the open book the character can read.
book.setPages()
Book.setPages(pages)Replaces the open book's pages while it is being read.
book.write()
Book.write(enabled, page)Lets the player write on a page of the open book, by default the last. Text appears as typed, Enter starts a new line, and Esc ends writing, as does write(false).
book.currentBook()
Book.currentBook()The open book's id, or null.
book.lastFailure()
Book.lastFailure()Why the last open() failed, or '' if it did not.
book.image()
Book.image(path)Makes a .dds your resource ships usable as a page picture, and returns its name for `images`.