intfiction.org

The Interactive Fiction Community Forum
It is currently Sun Dec 17, 2017 10:45 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Sep 21, 2016 2:38 pm 
Offline

Joined: Sun Oct 04, 2015 4:52 am
Posts: 7
I'm writing a game which involves a lot of Twine 2 SugarCube's <<display>> macro, and I want to make a downloadable transcript button. To this end, I want to copy the text of a passage AFTER all of the macros in it have been applied and resolved. Is there an existing script to do something like this? Is there an easy way to make a script myself (not knowing much JS) or, as one guy suggested, does the only solution involve digging pretty deep into the Twine source code?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 22, 2016 5:30 pm 
Offline
User avatar

Joined: Sun Aug 15, 2010 8:52 am
Posts: 1400
I'm kind of surprised no one's made a Twine transcript script yet, but I don't see one on a fast search.

Without looking at how Twine works - I would suggest creating a different kind of change-passages link. Before carrying out the normal Twine change-passage sequence, it would append the current text to a string variable (and then you could download the entire string to text at the end).

There may be a better way. I'm a beginner with Javascript myself.

_________________
Carolyn VanEseltine


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group