Hi folks! I'm new to Twine and absolutely thrilled to have found such a great tool. It really seems ideal for the kind of games I want to make.
I recently played
Castle, Forest, Island, Sea, and I liked the way they used different colors for different 'types' of links. I'm not planning to do the 'adding/changing text in place' trick (although I'd love to know how it's done), but I'd like players to be able to see which links provide more information, as opposed to the links which move you forward in the game.
My question is: How do I set things up so that I can flag links as being of a given type, and then color them accordingly?
Thanks in advance for any and all help!
Comments
Links in Twine are colored via CSS. So if we have a tag with an class of green, like this: We need a stylesheet line like this to make it so: What this all boils down to is that Twine, like a great strategy game, is easy to get into but has a very high skill ceiling. People here are more than happy to help you with this kind of stuff, but if you enjoy it I highly recommend learning some basic HTML and CSS!
Well no language is going to be picked up in a few hours, but I learned it in a few weeks, and it'd be hard to think of any languages that are easier to learn. Javascript for example is certainly much harder. You're right about the div tag though. Changed it.
Heh. Thanks for the tip. I wouldn't claim to 'know' CSS, but I think I can manage this, at least.
I had to throw an !important in there to get it working:
.info a { color:#ffffff !important; }
Now it's doing exactly what I want, so thanks again! ^_^
If you're doing: Then the correct selector would be: I don't know how a.green would ever work...
Furthermore, if you used that selector, the !important keyword would not be required.
I really did seem to need that !important, though... except I took it out to confirm, and it still works. ???