It looks like you're new here. If you want to get involved, click one of these buttons!
[[tap|bed1Window][$tapWindow to 1]]The above works just fine. I want to make it so if you pound on the window it takes tap out as an option so I tried
[[Pound|bed1Window][$poundWindow to 1][$tapWindow to 1]]The above just shows up as bed1Window][0 to 1][0 to 1 on the line.
::bed1Window <<display "StatusBar">> ------ Looking out the window you can see nothing but forest in all directions. This scares you even more than your current predicament. The window does not appear to open. You stare out the window for a moment hoping to see something that gives you hope, but that never happens. <<if $tapWindow is 1>><br>You tap on the glass with a nuckle and notice that it doesn't sound quite right. This glass appears to be thicker than normal.<<endif>>\ <<if $poundWindow is 1>><br><br>You pound on the window with both hands as hard as you can and realize that was a terrible idea. You might as well be pounding on concrete. The glass doesn't sound like normal glass and is clearly not going to break for you or anyone else.<<endif>>\ <<if $tapWindow is 0>><br>At this point you [[tap|bed1Window][$tapWindow to 1]] the window.<<endif>> <<if $poundWindow is 0>><br>[[[Pound|bed1Window][$poundWindow to 1][$tapWindow to 1]]] on the window frantically.<<endif>> [[Assess|bed1]] your options.
Comments
I have had success with doing that in SugarCube using the following:
The backslashes are for removing the linebreaks.
Also... not my original code, but I don't remember who first wrote it. I think it was GreyElf modifying someone's broken code... so... credit goes to him.
PS, You still have version one syntax going in what you pasted it looks like.
—Sage.
I might be. The problem is I cannot get to the sugarcube help pages because they are blocked. I have been trying to get my information from a multitude of sources to work around it but consolidated help is locked away for the moment. I will admit that I am struggling a bit.
As for what you have written I am looking over it now to see if I can understand it enough to replicate it in my story. From my initial perusal it looks like it is close to what I want but not exactly.
If they tap, they can then chose to pound but if they pound they cannot choose to tap. It looks like yours only lets me pick one and removes the other as in option not matter what it is I pick. If that is the case it doesn't exactly solve my issue.
You can just NOT use replace on that one. You'll still get the results.
My suggestion: make a new twine story, paste in ONLY what I sent you. Then remove tap from the choices.
EDIT: I will post my completed code below when I am finished so others can use it if they need it.
You may want to read it @Novalith
http://twinery.org/forum/discussion/comment/8835/#Comment_8835
That being said I am posting up my final code (minus possible revisions to make the passage flow better as far as readability goes. It gets the job done and when you come back it prevents you from pounding on the same glass again.
I used a semicolon but yes, I eventually figured that out. I like the other solution better because it actually allowed me to do something a bit different and it fit what I was going for better. However I am sure I will come to need this knowledge anyway. Thanks for taking the time to respond!
I haven't published yet!!!! Besides this is mostly a tech demo of sorts. Just getting my feet wet. Thanks though.