0 votes
by (8.7k points)

I have some images (character avatars) in my StoryCaption passage.  I'd like to add a "Reload" link that reloads StoryCaption only (in the event that an image doesn't load correctly).  Is there an easy way to do that?

I tried putting in a <<link "Reload" `passage()`>><</link>> in StoryCaption, but that reloads the whole passage, not just StoryCaption.

 

1 Answer

+1 vote
by (63.7k points)
selected by
 
Best answer

You could do something like the following:

<<link "Reload">>
	<<replace "#story-caption">><<include "StoryCaption">><</replace>>
<</link>>

 

by (8.7k points)
Works perfectly, thanks!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...