Hello!
Sorry if this has already been answered, but neither Google nor the forum search feature showed me any relevant posts.
I'm currently experimenting with different conversation systems. My only experience so far has been with a multi-node approach, where there was a node for each meaningful action, but I'm trying to figure out how a single-node system could work since it would be much more compact and convenient.
I'd prefer to have each new set of text and choices replace the last, so I was experimenting with (replace: ). It works perfectly for the first set of choices, but not for the second, and I can't figure out why that is.
For example, choosing to dance with the NPC replaces the talk/ignore/dance options with the new text and choices - tango/slowdance/breakdance. However, choosing to tango does not replace the tango/slowdance/breakdance options, it only adds the tango-related text below it.
I've included the current state of my little experiment below. Does anyone see what I did wrong?
(I'm using Harlowe 2.0.11, if that makes any difference)
I'd really appreciate any help!
Sorry if this has already been answered, but neither Google nor the forum search feature showed me any relevant posts.
I'm currently experimenting with different conversation systems. My only experience so far has been with a multi-node approach, where there was a node for each meaningful action, but I'm trying to figure out how a single-node system could work since it would be much more compact and convenient.
I'd prefer to have each new set of text and choices replace the last, so I was experimenting with (replace: ). It works perfectly for the first set of choices, but not for the second, and I can't figure out why that is.
For example, choosing to dance with the NPC replaces the talk/ignore/dance options with the new text and choices - tango/slowdance/breakdance. However, choosing to tango does not replace the tango/slowdance/breakdance options, it only adds the tango-related text below it.
I've included the current state of my little experiment below. Does anyone see what I did wrong?
(I'm using Harlowe 2.0.11, if that makes any difference)
I'd really appreciate any help!
[The [single-node NPC]<sNPC| is looking at you expectantly.
(click: ?sNPC)[The NPC seems to be waiting for you to [talk]<sNtalk| to it. You could, however, decide to [ignore]<sNignore| it instead. You could also attempt to [teach it how to dance]<sNdance|.]]<passage1|
{ [(click: ?sNtalk)[(replace: ?passage1)[You start making small talk with the NPC.]]
(click: ?sNignore)[(replace: ?passage1)[You turn away and pretend not to notice the NPC, though you can still see its dejected expression out of the corner of your eye.]]
(click: ?sNdance)[(replace: ?passage1)[You offer to teach the NPC how to dance - it enthusiastically agrees. Do you want to [tango]<tango|, [slow dance]<slowdance| or [breakdance]<breakdance|?]]]<passage2| }
{ (click: ?tango)[(replace: ?passage2)[You dance a passionate tango with the NPC. (set: $mood to "romantic") The NPC is growing fatigued from all this energetic dancing. Will you allow it to [take a break]<break|, or force it to [continue]<continue|? ]]
(click: ?slowdance)[(replace: ?passage2)[You gingerly wrap your arms around the NPC and start swaying around in a soft rythm.]]
(click: ?breakdance)[(replace: ?passage2)[You bust out some moves with the NPC.]] }