So, what I'm trying to accomplish is having two options that are hidden by an if statement until something in the passage reveals them, then when one option is selected, it hides the other. I've got the hiding until needed portion working, and I've got the removal of the unselected portion working, they just don't work together.
Bear in mind, I had not heard of Twine before three days ago, and the last coding I did was in QBasic on Windows 3.1 and 95. So... yea.
This is essentially what I have to hide the options if there is no KD. (forgive my formatting, or lack thereof)
Useless flair included for context.
You <<set _lid to either("on", "off")>>\
<<if _lid == "on">>\
<<print "take the lid off of the pot,">>\
<</if>>\
fill the pot with water, and set the pot on the stove. You turn the stove on, and bring the water to a boil. \
<<set _kd to either("yes", "no")>>\
<<if _kd == "no">>\
<<print "As you">>\
<<else>>\
<<print "You">>\
<</if>>\
reach in the cupboard for the KD, \
<<if _kd == "no">>\
<<print "your hand finds nothing. Somebody cooked it all and didn't buy more.">>
<<linkreplace "Cook something else?" >>
You walk over to the freezer and pull out some frozen perogies.<</linkreplace>>
<<linkreplace "Angrily pour the water down the drain.">>
Whoever ate the last of the Kraft Dinner will pay dearly!<</linkreplace>>
<<else>><<print "grab a box, and pour it into the water.">><</if>>
The method to remove the other unselected option, makes use of this. But it seems that DIV ID and SPAN ID can't be hidden by IF statements. So is there a way to pull this off , or am I grasping at straws. It's easy enough to just have each option link to a new passage, but I was trying to have each passage be it's own scene.
I'm crazy, aren't I?
DeadlyWhatever