Hello I am working on my twine game in sugarcube and I added an image map to make image interactive, but I'm having trouble with data-passage tag. Right now I have it set up where when you click on the section of the image it takes you to another passage with the caption, but I would like instead to have the caption appear next to the image on the original page. Is this possible with a set and print function? (I don't know much about these function, I've only used them sparingly in my games.)
The 1st code snippet is the original passage that links to others. The 2nd code snippet is the linked passage (panel2_a) which is replicated for the panels 2_a through panel2_e.
<img src="http://pages.iu.edu/~gcreekba/arch_ss/panel2_map_sm.png" usemap="#image-map" class="panel">
<p class="info2">This panel shows the submission of Edessa and the forced allegiance of its king, Abgarus</p>
<map name="image-map">
<area target="" alt="section_a" title="section_a" data-passage="panel2_a" coords="17,375,698,694" shape="rect">
<area target="" alt="section_b" title="section_b" data-passage="panel2_b" coords="22,257,698,372" shape="rect">
<area target="" alt="section_c" title="section_c" data-passage="panel2_c" coords="24,158,357,255" shape="rect">
<area target="" alt="section_d" title="section_d" data-passage="panel2_d" coords="361,17,696,255" shape="rect">
<area target="" alt="section_e" title="section_e" data-passage="panel2_e" coords="21,16,358,157" shape="rect">
</map>
<img src="http://pages.iu.edu/~gcreekba/arch_ss/panel2_map_sm.png" usemap="#image-map" class="panel">
<p class="info2">Section A shows the Roman army marching on Edessa.</p>
<map name="image-map">
<area target="" alt="section_a" title="section_a" data-passage="panel2_a" coords="17,375,698,694" shape="rect">
<area target="" alt="section_b" title="section_b" data-passage="panel2_b" coords="22,257,698,372" shape="rect">
<area target="" alt="section_c" title="section_c" data-passage="panel2_c" coords="24,158,357,255" shape="rect">
<area target="" alt="section_d" title="section_d" data-passage="panel2_d" coords="361,17,696,255" shape="rect">
<area target="" alt="section_e" title="section_e" data-passage="panel2_e" coords="21,16,358,157" shape="rect">
</map>