inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.07k stars 489 forks source link

Rolling credits in Unity at the end of an Inky script #789

Open LudoNarraBrit64 opened 2 years ago

LudoNarraBrit64 commented 2 years ago

Hi all, Games student here making a visual novel. It has been a blast using Ink and I want to carry on learning it for future projects. Just a couple of questions:

How would I tell my game to run a credits sequence once my ink file hits ->END? I don't know what the exact syntax would be but is there a way to say if(CurrentLine == "->END") or something to that effect?

Secondly, I've got a section at the end of the game where the two main characters have a massive blowout argument and I want the player to make two quick choices in rapid succession. At the moment, the player makes the first choice (Henry's choice), the line prints in the text box, but then clicking to play the next line won't do anything. This is what the flow looks like in Inky. What am I missing here? image

Thanks, Charles