0 votes
by (150 points)

Hello everyone,

 

I'm very new to Twine and had started to work on Harlowe. Since it had its limitations, I switched to Sugarcube, but I had some issues (of course).

I found the translations for most of my stuff but there's one thing I can't find, and after looking a little while in the forum and on the SugarCube doc, I couldn't find an answer so here I am.

I had created a scene where the player sees 2 bottles on a table, and would look at both.

In Harlowe, I just created a hooked link and the text that was to appear when you click on it. But I didn't want the first text to be replaced. (see below)

Vous êtes dans une grande pièce, presque vide à l'exception d'une table.

Sur la table se trouvent des bouteilles de vin.
Une [bouteille de vin rouge]<cli1| trône fièrement à côté d'une [bouteille de vin blanc]<cli2|

(click: ?cli1) [Ce n'est pas un cépage que vous connaissez, mieux vaut éviter la boire...]
(click: ?cli2) [Ah, un Chardonnay de 1369. Bizarre, l'appellation n'est pas si vieille...]

[[Pièce de vin<-regarder la pièce autour]]

So, I want to re-create that effect on SugarCube, any ideas ? Because all I found was replacing my ?cli1 hooks with text which is not my goal :/

Thanks a lot !

1 Answer

0 votes
by (23.6k points)
selected by
 
Best answer

If I understand the effect you want correctly, it should look something like the following in sugarcube:

 

Sur la table se trouvent des bouteilles de vin.
Une <<linkreplace "bouteille de vin rouge">>bouteille de vin rouge<<replace "#cli1">>Ce n'est pas un cépage que vous connaissez, mieux vaut éviter la boire...<</replace>><</linkreplace>> trône fièrement à côté d'une  <<linkreplace "bouteille de vin blanc">>bouteille de vin blanc<<replace "#cli2">>Ah, un Chardonnay de 1369. Bizarre, l'appellation n'est pas si vieille...<</replace>><</linkreplace>>

<span id="cli1"></span>
<span id="cli2"></span>

[[Pièce de vin<-regarder la pièce autour]]

 

by (150 points)
It's exactly that ! Thanks a lot !
...