intfiction.org

The Interactive Fiction Community Forum
It is currently Wed Jul 18, 2018 8:55 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Feb 01, 2018 11:21 am 
Offline

Joined: Thu Apr 03, 2014 9:44 am
Posts: 138
Hmm, I'm trying to make a link to an external website from my ink game. I feel like I must be missing something simple, but I can't figure out how.

Thanks for any help!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Feb 01, 2018 2:25 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 5693
I believe the idea is that your game (Unity or whatever) is responsible for presentation. Ink just generates text output. You could include some kind of tag formatting in the output, and then scan that for strings to display as hyperlinks.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Feb 01, 2018 2:35 pm 
Offline

Joined: Thu Apr 03, 2014 9:44 am
Posts: 138
So far I'm not messing with unity -- I have inky compiling the game as a website. I guess what I need to do is open the javascript portion of the output and put the link directly in there, but there are unknown unknowns, as they say, and I'm not sure if that makes sense/is bad/is good/how to do it, anyway. (I know nothing about javascript.)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Tue Jun 19, 2018 8:53 pm 
Offline

Joined: Tue Oct 17, 2017 5:47 am
Posts: 4
It looks to me as if you can just put HTML directly in your ink, and if you're compiling for web it will show up. The only thing is that // is a comment marker in Ink, so you'll need to put a backslash before the second slash so it isn't detected as a comment. So the following works for me (note the backslash near the beginning of the URL):

Code:
Check out the <a href="https:/\/www.intfiction.org/forum/">Interactive Fiction Forums</a>.


Edit: And...sorry for the necrobump: didn't notice the date...


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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