inkle / inky

An editor for ink: inkle's narrative scripting language
http://www.inklestudios.com/ink
2.39k stars 290 forks source link

Warning hints at functionality that doesn't exist when using out of scope temporary variable with += #465

Open tomkail opened 1 year ago

tomkail commented 1 year ago

Temporary variables appear to only be accessible in the scope they were declared in, and not accessible to child containers. The error message shown when trying to access them using += suggests that they should be accessible, as if ink was searching parent objects, but it seems not to.

The image shows a repro.

image

When using = the error message reflects how ink actually works - it doesn't search parent objects.

image