ink icon indicating copy to clipboard operation
ink copied to clipboard

Return to previous knot/section

Open kreutzerwilhelm opened this issue 5 years ago • 1 comments

Hello,

I'm currently attempting to make a game with light RPG elements in Ink (without Unity), and I'm wondering how I would go back about sending the player back to the previous section after a specific knot.

I've attempted to use a tunnel to display the player's statistics (as variables) and send the player the knot they were on during the previous turn, but I can't quite figure out how to do this.

What would be a simple way to create a knot that displays several statistics to the player and then returns them to the section they came from last?

Thank you!

kreutzerwilhelm avatar Jul 30 '20 14:07 kreutzerwilhelm

Hi! You can create a function, or a tunnel. Functions cannot divert, but are good to display info or do some calculations. In tunnels you just have to call the knot in this way -> tunnel -> and in the destination code when you need to go back you use ->-> to come back. I will use functions by default, and change that to tunnels whenever functions cannot be used.

jeuazarru avatar Jul 30 '20 16:07 jeuazarru