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

ChoosePathString doesn't work on all labels #896

Open paulhayes opened 6 months ago

paulhayes commented 6 months ago

It seems that story.ChoosePathString will only divert to knots. I would really like to in code move to any label, on a gather for instance. Like so:

- (top)
Some stuff

story.ChoosePathString("top")

At the moment this can only be done by adding in a proxy knot. Is there another function that will allow me to manually divert in code immediately to a label?

Alex-Sand-0 commented 4 months ago

note that story.ChoosePathString("knot.stitch") should also work. I suppose however that labels were not designed to support ChoosePathString.