some consideration for @import

Now that Squiffy is finally getting a bit of the love it deserves from it's creators and maintainers, anybody wanna teach us how to make this capability happen?


Looks like the code in that other thread provides a way to dynamically insert text and JavaScript, but you couldn't use it to create new sections or passages, is that right?

Can you explain a bit more about what you want to achieve? There's no @import in the online editor because there's no way for it to create or access other files than the one it's currently editing, and it's hard to see how to overcome that.


Wow! The man himself! Thanks so much for Squiffy!

I'm STILL grateful for the day years ago when you taught me how to use HTML <input>!

Yes, that's right. The weird method in that forum post works either with curly bracket Squiffy or javascript, but not both at the same time, and certainly cannot import new sections and passages.

But I find it very useful. I keep my class schedule with students rosters in a text doc to insert random student names into stories. I keep scripts that I don't feel like constantly copying and pasting. APIs with real facts and data that Squiffy translates into ESL-ese.

It would be nice to just quickly type something like @import = Process DateTime.txt if I wanna access a text file in the same game folder, and maybe @import = https://media.textadventures.co.uk/games/RqcHuj3DvUexd6K__SR8Zw/NCYES%20API/Process DateTime.txt if its in a different game folder.

Just, thank you so much. Squiffy changed my life. Not exaggerating. I can code a little now and make the things I want to make, only because of you.


Log in to post a reply.

Support

Forums