inkle / ink

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

Can't recall visited choices through C# #893

Closed klootas closed 3 months ago

klootas commented 3 months ago

The following always returns 0 for me, regardless whether the choice has been selected before:

var visitCount = story.state.VisitCountAtPathString(choice.pathStringOnChoice);

The choices are being selected in a tunnel, but I don't think that matters. It seems to work using Unity, but not in Godot (where I'm using the standard DLLs of this repository).

klootas commented 3 months ago

This was due to the countAllVisits compiler flag not being set while instantiating the Compiler.