Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How can I make one link disappear when another is clicked?

edited March 2016 in Help! with 2.0
Basically what I want is a situation where you can select one of several dialogue options and once you've selected one I want further options to be displayed without having to go to a new passage every time. Something like this:

(link-reveal: "Test 1")[
(link-reveal: "Test 1a")[Blablabla]
(link-reveal: "Test 1b")[Blublublu]]
(link-reveal: "Test 2")[
(link-reveal: "Test 2a")[Plaplapla]
(link-reveal: "Test 2b")[Plupluplu]]

Except I want the "Test 2" link to disappear when the "Test 1" link is clicked and the "Test 1b" link to disappear when the "Test 1a" link is clicked and so on. I'm sorry if this is a dumb question but I haven't found a solution in the Harlowe manual yet and I'm sure it has to be possible somehow. Thanks! :)

Comments

  • edited March 2016
    Um, okay, I figured it out. Unfortunately I can't figure out how to delete this question...
    Anyway, in case anyone might have the same one, this is how I did it (not sure if this is the best or easiest way to do it, but it works and that's all I care about for now):

    |test1>[(link-reveal:"Test 1")[(replace: ?test2)[]
    |test1a>[(link-reveal:"Test 1a")[(replace: ?test1b)[]Blablabla]]
    |test1b>[(link-reveal:"Test 1b")[(replace: ?test1a)[]Blublublu]] ]]
    |test2>[(link-reveal:"Test 2")[(replace: ?test1)[]
    |test2a>[(link-reveal:"Test 2a")[(replace: ?test2b)[]Plaplapla]]
    |test2b>[(link-reveal:"Test 2b")[(replace: ?test2a)[]Plupluplu]] ]]
  • @Unreasons
    You can't delete the question but you can mark it as answered, so it stops appearing in the Unanswered category.
Sign In or Register to comment.