I am loving these tutorials! I ran into an issue going through this part. When I added my "set: $hoursAsleep to $hoursAsleep + 1" code underneath the choices on the "sleep" page, I got a little pink error box and the hours were never added when I tested it. I proof read the code several times and didn't see any errors. I then tried adding code above the choices and it worked properly. To double check myself, I cut the code from the top and pasted at the bottom again. It still worked properly, but I don't think I typed my code in wrong the first time. I figured I would post this as heads up to anyone else who experiences this. Thank you again.
Good tutorials. One complaint I have is they are not concise enough. For example, in this video it takes you nearly nine minutes to include the variable in your story. Not trying to be negative as I found these very helpful, just constructive criticism :)
Thank you sooo much for these tutorials. Definitely the best ones I've found and the ones I'm sticking with while I try to figure this application out.
Thank you for taking the time to record these tutorials. You've managed to combine clarity and brevity in a way that makes the information very accessible, even for a beginner like myself. I do have one question about using if statements to modify text-styles for the entire passage. Is there a way to have (if: $variable is 5) ------> set text-style for entire passage to "blur"? I've tried multiple ways to achieve this and other than adding if statements on every single page I have yet to come up with a solution. (tw-passage does not seem to accept text-style as an acknowledged modifier) Again, your work here is much appreciated and helpful in ways that you may never fully realize! Thank you : )
A few weeks ago I was following this, and realized that there was a drop down menu where I could do hooks, if/then statements, and variables...BUT NOW i don't see it anywhere. Where did it go? How can I get those drop down menus?
Really great tutorials! Am really hooked onto them. However, I am curious to know if it is possible to make an "ability" that can recharge over several "turns"?
+Daniel Choo It will take a bit of repetitive coding in Harlowe. But yes, it can be done. In SugarCube, it is much easier as you can encapsulate that in a macro, but that's a little bit on the advanced side.
+VegetarianZombie Hey IDK if you still use this account, but I'm still a little confused with the variable things. see I have one part of my story where it branches off into a battle with like health, attacking and evading sort of stuff, and I'm not certain that the variables are what I'm thinking of. also, what format do you recommend for twine?
Is there a way to make a player choose their name?? On harlow? I saw a tutorial but it was on sugar cube but for some reason it doesn't seem to work with my story.... Can someone help?
if you are using the latest version of Harlowe, you can do something like this: (set: $name to (prompt: "Enter your name", "Player 1")) The player 1 is the default name in case the cancel button is pressed.
Glad you are enjoying Twine - these videos are slightly out of date so some things will work. Others not so much. Regarding accounts, everything is saved locally in your browser so you don't need an account. This means if you visit Twinery with a different browser, you won't see your stories.
Hi thank you for this series of tutorial, i really need it, cause I never ever progammed, but i'm a history teacher and I trying to use twine to create some fun lessons. I've a problem with conditions if I write set: $blablabla to 1 between parenthesis nothing happen and the command appear as I write it as a normal text during the game, and if I write like this simply nothing happen. What is wrong?
Francesco Pota Hi Francesco ... I'm glad the series has been some help to you. Regarding the issue, it sounds like you may be writing code for Harlowe while using another story format. Typically, when you see your Twine code, that's a good indication that you it's either story format related, or you have a bug in your code. I would recheck your format, then check your code over again. Hope that helps!
How does this translate for HTML? I've been using the Snowman 1.1 format for Twine 2.0. Edit: I've been trying to figure out how to utilize custom names for a CYOA game and found this script.
+Chris Corella If you've been using Snowman, you'll probably feel very limited using Harlowe as Harlowe is really an entry level story format. You should be able to embed a variable inside of HTML using the print macro. Of course, you'll have to do some testing. It's been awhile since I worked with Harlowe.
VegetarianZombie I'll see what tutorials I can find for Snowman; I believe I can make use of the Twine forums. I might also look at codecademy for JavaScript help. Thank you very much for the reply.
This helped me do exactly what I wanted to do (add a day counter). Thanks for the tutorial. Still helping people 7 years after you made it.
You are a miracle worker. I might not get booted off of my course now!
8:30 features the syntax for creating a variable.
I couldn't find any proper tutorials but you did an amazing job at it
hi from 2020
I am loving these tutorials! I ran into an issue going through this part. When I added my "set: $hoursAsleep to $hoursAsleep + 1" code underneath the choices on the "sleep" page, I got a little pink error box and the hours were never added when I tested it. I proof read the code several times and didn't see any errors. I then tried adding code above the choices and it worked properly. To double check myself, I cut the code from the top and pasted at the bottom again. It still worked properly, but I don't think I typed my code in wrong the first time. I figured I would post this as heads up to anyone else who experiences this. Thank you again.
+Dot Doty To use the macro you have to switch to the Sugarcube story format. Harlowe uses a different syntax.
Good tutorials. One complaint I have is they are not concise enough. For example, in this video it takes you nearly nine minutes to include the variable in your story.
Not trying to be negative as I found these very helpful, just constructive criticism :)
+Bladeclone Thanks so much for the feedback! I'll keep that in mind during future tutorials.
Thank you sooo much for these tutorials. Definitely the best ones I've found and the ones I'm sticking with while I try to figure this application out.
Thank you for taking the time to record these tutorials. You've managed to combine clarity and brevity in a way that makes the information very accessible, even for a beginner like myself.
I do have one question about using if statements to modify text-styles for the entire passage. Is there a way to have (if: $variable is 5) ------> set text-style for entire passage to "blur"? I've tried multiple ways to achieve this and other than adding if statements on every single page I have yet to come up with a solution. (tw-passage does not seem to accept text-style as an acknowledged modifier)
Again, your work here is much appreciated and helpful in ways that you may never fully realize! Thank you : )
A few weeks ago I was following this, and realized that there was a drop down menu where I could do hooks, if/then statements, and variables...BUT NOW i don't see it anywhere. Where did it go? How can I get those drop down menus?
Really great tutorials! Am really hooked onto them. However, I am curious to know if it is possible to make an "ability" that can recharge over several "turns"?
+Daniel Choo It will take a bit of repetitive coding in Harlowe. But yes, it can be done. In SugarCube, it is much easier as you can encapsulate that in a macro, but that's a little bit on the advanced side.
thank you, this really helped
Any tips for making a variable increase after picking a choice?
How do I like in the first version. it says : Twine 2 macros use a different syntax to Twine 1 macros.
Is there a new way to make choices
You have to use in Twine 2 [[Choice]] to make choices.
Wait did this guy just came up with the idea for the movie passengers before it came it out
+VegetarianZombie Hey IDK if you still use this account, but I'm still a little confused with the variable things. see I have one part of my story where it branches off into a battle with like health, attacking and evading sort of stuff, and I'm not certain that the variables are what I'm thinking of. also, what format do you recommend for twine?
Is there a way to make a player choose their name?? On harlow? I saw a tutorial but it was on sugar cube but for some reason it doesn't seem to work with my story.... Can someone help?
if you are using the latest version of Harlowe, you can do something like this:
(set: $name to (prompt: "Enter your name", "Player 1"))
The player 1 is the default name in case the cancel button is pressed.
@@VegetarianZombie Thank you!!
thank you, this is immensely helpful
6:16 that's right I heard the story
This is helpful, but no matter what i do for the variable it shows the number as 0. Even after writing what you've written verbatim.
Great tutorial!
Kieran Brugman Thanks so much!
VegetarianZombie Has there been any updates because when I tried your method it didn't work they way it did in your tutorial
So it can only hold the number values? It doesnt hold words for example?
Variables can hold number values, text, true/false values, and objects like datamaps as you'll discover :)
Funny question tho- why dont you have to log in and out??? or create an account?
Glad you are enjoying Twine - these videos are slightly out of date so some things will work. Others not so much.
Regarding accounts, everything is saved locally in your browser so you don't need an account. This means if you visit Twinery with a different browser, you won't see your stories.
Hi thank you for this series of tutorial, i really need it, cause I never ever progammed, but i'm a history teacher and I trying to use twine to create some fun lessons. I've a problem with conditions if I write set: $blablabla to 1 between parenthesis nothing happen and the command appear as I write it as a normal text during the game, and if I write like this simply nothing happen. What is wrong?
Francesco Pota Hi Francesco ... I'm glad the series has been some help to you. Regarding the issue, it sounds like you may be writing code for Harlowe while using another story format. Typically, when you see your Twine code, that's a good indication that you it's either story format related, or you have a bug in your code. I would recheck your format, then check your code over again. Hope that helps!
Whenever I try to do this, it prints out (set 0 to 0). Why is this happening?
Never mind! I just wasn't adding the colon.
@@henryg.8762 Glad you figured it out. Forgetting your colon can definitely lead to awkward situations ;)
How does this translate for HTML? I've been using the Snowman 1.1 format for Twine 2.0.
Edit: I've been trying to figure out how to utilize custom names for a CYOA game and found this script.
+Chris Corella If you've been using Snowman, you'll probably feel very limited using Harlowe as Harlowe is really an entry level story format.
You should be able to embed a variable inside of HTML using the print macro. Of course, you'll have to do some testing. It's been awhile since I worked with Harlowe.
VegetarianZombie I'll see what tutorials I can find for Snowman; I believe I can make use of the Twine forums. I might also look at codecademy for JavaScript help. Thank you very much for the reply.