I think this is a bit of a noob question, but I am after a way to reload a custom passage on a button click. Currently I reload custom passages after rendering a main passage:
postrender["updateTitles"] = function () {
setPageElement("titles", "Titles");
};
How would I wrap similar code in a <<script>> macro to reload the passage on command, without reloading the main passage?
Eg I'd like it to fire on specific interactions the player makes in a passage, not just visiting a passage.
Comments
Without testing I would think the following would work.