Quantcast
Viewing latest article 25
Browse Latest Browse All 1844

Radiobuttons and If's

So...
I've been using radiobuttons quite frequently, and they're great to establish variables. But I came across a question. It's not a structural problem to my game, just a whim, but I got curious. So here goes: is it possible to have a radiobutton establish a variable and unlock a hidden content of the same passage it's in?

I'll explain better.
I have this in my passage, for example,
* Beer  <<radiobutton "$meal" "beer">>
* Mead  <<radiobutton "$meal" "mead">>
* Ale  <<radiobutton "$meal" "ale">>

<<linkreplace ">>">><<goto "Next">><</linkreplace>>

Now my question, my intention was that the <<linkreplace>> only appeared once the player had made a choice. Now I imagined that could have something to do with a refreshing of the passage itself but I don't know how to incorporate that with the radiobutton macro.
Is this possible? Thanks Image may be NSFW.
Clik here to view.
:)


(and sugarcube 2.18/twine 2)

Viewing latest article 25
Browse Latest Browse All 1844

Trending Articles