Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

Hello! I am very fond of the plugin you made. May I ask you a question about plugin command?

How does "LibraryData TextUpdate key Replace index" actually works? So here is how it goes right now. I'm using plugin manager as Datasource. I'm making a little cookbook, which shows a part of its contents at first, and updates afterwards. I filled "text" part for initial contents, and put updated full cookbook on the number 1 of variable text list.

I made an event that runs "LibraryData TextUpdate Cookbook Replace 1",  but it just deleted whole book's content. Where did I fumbled? Maybe I should have used \v[1] or something?

EDIT: Well, nevermind. Solved it myself.

Hello there!

Sorry for the long silence... I have been going crazy with my dayjob, not much time left for coding lately =(

Glad to know you managed to work it out!

Just a reference if anyone else stumbles upon your question: the "Replace" command will remove all currently visible text from the book, and make visible only the text index you point out on the command. If the index you provide has no text, then the book will be shown empty in the text window. However, if what you want is to add another chunk of text to be shown (instead of replacing all of it), you should use the "LibraryData TextUpdate key Add index" instead!

Just keep in mind that the provided index must have a text assigned for it in your datasource, be it an external JSON file or the Plugin Manager. If the index does not exist or has no text, the plugin will simply assume there is nothing to display.