They can also be fancy stuff like arrays, but we won’t be touching on that. true or false), a number, or a string (like “blonde” or “any other string of characters”). The value in a variable can be a boolean (ie. So if $hairColour is set to “blonde,” this… So my hair colour variable might be “$hairColour.” If you just write the variable out without any code, Twine will print the information you put into the variable. In Twine, variables are written as words with a $ in front of them. If the player chooses to be blonde instead of a redhead, you might want to bring that up again- but you probably don’t want to write an entirely separate story based on that choice, right? So instead you save that information as a variable. Variables are useful for keeping track of information. “Variable” is a fun, code-y way to say “a bit of information that can change.” You could say they… vary. …but you want to do some fancy shit, right? Well let me introduce you to the next step up in complexity, If you add your awesome writing skills, that story will be super cool! That’s all you need to know! Technically, all you need to do to make a Twine story is add those fancy links between passages. If you want to show the passage name instead of alternative text, you can just put the passage name in square brackets alone! So this in the editor:Īnd all of them will lead to the passage labeled “Passage name.” You don’t even need to create the passage- when Twine sees that you’ve linked to a passage that doesn’t exist, it’ll add that passage for you. These are enclosed in ], with a vertical bar | or a little arrow -> between them. When they’re linked together they’ll be shown like this:Īnything you write in a passage will just be shown on screen as plain text, no code required! But if you want to make anything more than just one passage with a bunch of text, you’ll have to link passages together with…Ī link is composed of two parts- the text you see on screen, and the name of the passage you’re attaching it to. Passages are all like individual web pages that you navigate between to play the game. On the right side of the home screen (with all your stories), click format and choose the one labeled “Sugarcube 2.x.x” then open a new story with the green button! Here’s what you’ll see and what it all means: Might not be the most exciting read if you aren’t trying to learn Twine.įirst off, make sure your story format is set to Sugarcube 2. That’s a lot more manageable, right? Below the cut, I’ll let you know how to use all those remaining important things to make your story! Warning- it’s quite long! You might want to read it in sections! And while I’ll try to keep it entertaining, it’s also a coding tutorial, so… y’know. (Ignore > too, forgot to crop that one out) As a beginner you can skip pretty much all of this: I think the problem is that people look up Twine, see the documentation, and go “There’s way too much there! I can’t learn all that!” Well guess what- you shouldn’t learn all that, at least not yet. And that makes me sad, partly because they’re giving up on a really cool hobby, and also because that’s false! It’s absolutely not too complicated for you! I’ve seen a lot of people go “Twine is too complicated for me :(” and give up before they’ve even started. AKA, all you need to make a Twine game (I swear to god)
0 Comments
Leave a Reply. |