Just to update: when using unset on modern twine, it makes it instead of blank. For those who may be thrown off. So may want to set it to "" if we want to blank it out. Also, seems to be depreciated in 2.x, so need to use other approaches if you need to do that.
Holy crap! You are a great teacher. Explaining the same thing 2 different ways? Brilliant. I've always wanted to make a game and with the help of these videos I think I can make something fun. Thanks.
+paulus Here's what you'd do ... [[Move North|$place]] The value in $place will be substituted for the passage location. Give it a whirl. It should work. Cheers!
Since it's an old post I just want to help others who discover this for the first time. What he's looking for is
Since listbox "$gender" points at defining it's content through the user input of either options boy or girl, it's not necessary to define anything past it. v------- $gender is set to "boy" $gender is set to "girl" ^------- Simply asks if either input is true with no follow up on what to do with that information. Therefore this can also be read as: if $gender is set to "boy" then if $gender is set to "girl" then Sidenote: If you are using debug and you don't see any changes in the passage you're working with -- it does. Just press watch all again in the debug menu and it will update for that passage. You can also see the updated value of the variable in the next passage.
Great videos Brian. I'm checking this in Twine as I go, and I think this was of setting macros are not done in the twine passages now, they are definedin the javaScript window now right?
I originally thought that some of this code had changed. I realized the mistake was that I was pressing play from the passage and not from the bottom of the twine window.
I'm new to the series (and just caught BANDERSNATCH on Netflix) so you may answer this question in the future but for a variable like $name how would the player input that. I.E A character asks the player "What is your name?" so we can use the name later on in the game
I know it's been a couple months since you asked but I guess for anyone else that's curious- What is your name?: with "John" being the default name. You can leave it blank (but keep the quotation marks!- "") to leave the textbox empty.
Hi vege zombie! I'm curious to know if there's a way to have a variable inside a link. E.g on the first passage I have 3 options that all link to the same (second) passage. But I only want one of the options to add +1 to a variable. Is it possible to have the variable within the [[ ]] link or do I need to make 3 identical passages? Hope I explained it well enough
Just to update: when using unset on modern twine, it makes it instead of blank. For those who may be thrown off. So may want to set it to "" if we want to blank it out.
Also, seems to be depreciated in 2.x, so need to use other approaches if you need to do that.
Holy crap! You are a great teacher. Explaining the same thing 2 different ways? Brilliant. I've always wanted to make a game and with the help of these videos I think I can make something fun. Thanks.
+paulus Here's what you'd do ...
[[Move North|$place]]
The value in $place will be substituted for the passage location. Give it a whirl. It should work. Cheers!
Thanks for valuable content.
Hello, how do i select gender if i let the choice to create a male character or a female?
Gender:
Twine doesnt remember my choice :( What im doing wrong?
Since it's an old post I just want to help others who discover this for the first time.
What he's looking for is
Since listbox "$gender" points at defining it's content through the user input of either options boy or girl, it's not necessary to define anything past it.
v-------
$gender is set to "boy"
$gender is set to "girl"
^------- Simply asks if either input is true with no follow up on what to do with that information.
Therefore this can also be read as:
if $gender is set to "boy"
then
if $gender is set to "girl"
then
Sidenote: If you are using debug and you don't see any changes in the passage you're working with -- it does. Just press watch all again in the debug menu and it will update for that passage. You can also see the updated value of the variable in the next passage.
Great videos Brian. I'm checking this in Twine as I go, and I think this was of setting macros are not done in the twine passages now, they are definedin the javaScript window now right?
I originally thought that some of this code had changed. I realized the mistake was that I was pressing play from the passage and not from the bottom of the twine window.
Thanks :)
I'm new to the series (and just caught BANDERSNATCH on Netflix) so you may answer this question in the future but for a variable like $name how would the player input that.
I.E A character asks the player "What is your name?"
so we can use the name later on in the game
I know it's been a couple months since you asked but I guess for anyone else that's curious- What is your name?: with "John" being the default name. You can leave it blank (but keep the quotation marks!- "") to leave the textbox empty.
Hi vege zombie! I'm curious to know if there's a way to have a variable inside a link. E.g on the first passage I have 3 options that all link to the same (second) passage. But I only want one of the options to add +1 to a variable. Is it possible to have the variable within the [[ ]] link or do I need to make 3 identical passages? Hope I explained it well enough
I have a question: How can I make the text appear progressively like with a timer or something like that? Thank you :)