Please, need help !

Hi,

I’m making a Twine game and I’ve a probleme with the print function. I write : Congrats, you’re alive ! <<remember $life = $life+”1″>> You manage to see the end of the game in <<print $life>> try. And when I build the story, I have : Congrats, you’re alive !You manage to see the end of the game in undefined1 try

And I don’t know why there is “undefined”. Please, help me ! :(

Comments

martijn
24. Aug 2013 · 20:32 UTC
Well I no nothing about twine, but maybe your forgot to initialize $life. Maybe setting it to 0 before you do anything else might fix it
Sistinas
24. Aug 2013 · 20:36 UTC
I know nothing about it either, but could the + need a leading and trailing space? Just the first thing that catches my eye. I like a little whitespace between anything like that on one line of code…
Le_John
24. Aug 2013 · 20:48 UTC
Yeaaaaaaaaaaaaaaaaaah ! You’re a hero martijn ! I thought that I had not to initialize $life at the begining but I was wrong ! Allelujah !