Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Clicking a link but staying on the same page

$
0
0
Hi I'm using SugarCube 2.18.0 and I want the player to be able to select two things:

Try to bribe the guard
Go back

If the player choses to bribe then the continuation text should be added on the bottom of the text that is already displayed on the page. One way of doing this would be using a link and a variable like this:
	"Can I pass?"
	"Sorry, I'm not allowed to let you through."

<<if not $bribe>>\
	[[Try to bribe the guard->gate][$bribe=1]]
	[[Go back->street]]
<<else>>\
	<<set $bribe=0>>\
	You pay the guard and he lets you through
<<endif>>\

But the page would reload and it doesn't feel like this is the best solution. What is the best way to do this?

Viewing all articles
Browse latest Browse all 1844

Trending Articles