intfiction.org

The Interactive Fiction Community Forum
It is currently Mon Nov 20, 2017 8:44 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Aug 02, 2017 7:37 pm 
Offline

Joined: Tue Jul 28, 2015 1:05 pm
Posts: 979
I want to create a list of things that may or may not appear depending on certain variables. I initially had this:

Code:
(if: $life is 1)[[[Your life->Life]]]
(if: $gloom is 1)[[[Your gloom->Gloom]]]
(if: $mind is 1)[[[Your mind->Mind]]]


But it left black gaps when the variables were not 1.

So I tried the following:

Code:
(if: $life is 1)[[[Your life
->Life]]]\
(if: $gloom is 1)[[[Your gloom-
>Gloom]]]\
(if: $mind is 1)[[[Your mind
->Mind]]]\


Which displayed properly, but none of the links worked.

Any suggestions? Also, is there an easy way of uniformly making all click-replace macros start with red text instead of blue?

_________________
-My IFDB name is Mathbrush.

Anyone can make interactive fiction; if you've made a game and need a review on IFDB, let me know!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Aug 02, 2017 9:59 pm 
Offline

Joined: Tue Jul 28, 2015 1:05 pm
Posts: 979
Nevermind, I figured out how to do it. The following code works:

Code:
(if: $gloom is 1)[ (link-goto: "Your gloom.
", "Gloom")]\


I still can't figure out how to make replace-links red, though.

_________________
-My IFDB name is Mathbrush.

Anyone can make interactive fiction; if you've made a game and need a review on IFDB, let me know!


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Aug 03, 2017 12:17 am 
Offline

Joined: Tue Jul 28, 2015 1:05 pm
Posts: 979
I figured out the second part, too:

I added the following line to the CSS style sheet (after selecting that option on the drop-down menu)

tw-enchantment[class = "link enchantment-link"] {color:red;}

_________________
-My IFDB name is Mathbrush.

Anyone can make interactive fiction; if you've made a game and need a review on IFDB, let me know!


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