It looks like you're new here. If you want to get involved, click one of these buttons!
Hey there good neighbor, I can't quite tell in this light, what color shirt are you wearing anyway?
|body>[[Gold and white shirt]<Op1|
[Blue and black]<Op2|
[Sparkly shirt]<Op3|]
(click: ?Op1)[(set: $choice to 1)(replace: ?body)[It is gold and white, of course!]]
(click: ?Op2)[(set: $choice to 2)(replace: ?body)[Blue and black shirt, can't you tell?]]
(click: ?Op3)[(set: $choice to 3)(replace: ?body)[I just got back from the Twilight premier so.. sparkles for the win]]
Well, now that you mention it, of course it is [Gold and white | Blue and black | Sparkly], how could I have missed that? Although I still can't quite see your hat, what kind of...
And of course the 'well, now that you mention it...' text and all that happens below it, presumably a few more choices, would not appear until after you've picked one of the choices
Comments
**: The class based version requires some CSS like .hidden {display:none;} to work.
One possible solution to your issue is to use a (live:) macro to show the hidden text when a condition is met, as the following example based on your own shows.
(note: I replaced some of your hook's with (link:) macros, to reduce the number of hooks, and I store your possible choices within a array so you only have to edit the choices text in one place.) The Harlowe source code implies that you should be able to access an array element based on an expression [eg. $choices's ($choice) ] but I have not been able to get that to work. If it did work then you would not need the $clothes variable in the above example.
Here is a copy of the above example reformatted so it is a little more readable: I hope this helps.
Much thanks!
For what it's worth, it seems to work for me if I enclose the inline script in <script> tags, i.e.
And here I was thinking I was really smart for figuring that out. Oh well, I just thought it was worth updating this (admittedly slightly old) thread in case someone else found it like I did and could use the answer.
I was just making it clear about why it now works, when it did not before.