Quantcast
Channel: Twine Forum
Viewing all articles
Browse latest Browse all 3830

Is there any alternative to the 'replace' macro (click - change text + changing "set" each time)

$
0
0
Hello!

So far I'm getting my head around the more advanced techniques of coding, and already feel like I'm making excellent progress, although currently I feel as though I am at an impasse.

I have seen this particular tool implemented in other stories, where you click on a non-link type variable and (I'm not sure if this changes any 'Set' variables or not) it changes the highlighted text, which can be changed back and forth between the two (could there be more for implementation?) with ease.

E.G.

I feel 'good'*click*'bad' today.

"GOOD"/"BAD" being the variable to change.

On the Sugarcube 2 macro page, I tested the macro for the replace tool (thinking that this was the most viable option), and I can change the text from something to something else, but changing it back is a different story. It seems to be only able to change text that isn't part of the actual <<'click'>> either (or from what I tried at least). This also isn't my first choice in this area as it takes a troublesome amount of coding to implement for something that actually sounds rather simple in practice.

Is there any alternative to this method? Not sure if it's just me, or that I'm using the wrong macro.

Thanks guys.

Viewing all articles
Browse latest Browse all 3830

Trending Articles