Osiris/API/AddEntryToCustomBook

From Divinity Engine Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Full Definition(s)
  • call AddEntryToCustomBook((STRING)_Bookname, (STRING)_Entryname)
Description

If a custom book with the identifier _Bookname does not yet exist, this call internally creates a new "custom book" with that identifier.

Next, it adds the text associated with the translated string key _Entryname after the existing text in _Bookname (if any).

Notes
  • _Bookname is an arbitrary identifier of your choice. It does not have to correspond to any in-game item or translated string.
  • If you try to add the same translated string key multiple times to the same book, nothing will happen after the first time.
See Also