Osiris/API/AddEntryToCustomBook: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
(Documented AddEntryToCustomBook)
 
mNo edit summary
Line 7: Line 7:
===== Notes =====
===== Notes =====
* '''_Bookname''' is an arbitrary identifier of your choice. It does not have to correspond to any in-game item or translated string.
* '''_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 text of the same translated string key multiple times to the same book, nothing will happen.
* 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 =====
===== See Also =====
*[[Osiris/API/OpenCustomBookUI|OpenCustomBookUI]]
*[[Osiris/API/OpenCustomBookUI|OpenCustomBookUI]]

Revision as of 12:02, 9 October 2018

Full Definition(s)
  • call AddEntryToCustomBook((STRING)_Bookname, (STRING)_Entryname)
Description

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

Next, adds the text associated with the translated string key _Entryname to the existing text of _Bookname.

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