Skip to content

Inline expressions not working #35

@zephyo

Description

@zephyo

What is the current behavior?

According to https://yarnspinner.dev/docs/syntax/, this line:
Think: yarn var = {$popularity}.

Should result in:
Think: yarn var = 30.

But instead, I get the following:
Think: yarn var = {0}.

Please provide the steps to reproduce, and if possible a minimal demo of the problem:

  1. Have yarn file:
title: Start
tags:
---
Think: yarn var = {$popularity}.
===
  1. Be using develop branch.
  2. Output to dialogue ui.
  3. Add debug logs to the variable storage.
  4. See the following logs (seems as if GetValue from variable storage is being called but the delivered line doesn't use the gotten value):

logs

Note: I notice there's a similar issue for localization, but I'm not localizing anything.

What is the expected behavior?

I expect the inline expressions to work as documented.

Please tell us about your environment:

  • Yarn Spinner Version: Most recent develop branch
  • Unity Version: 2020.1.4

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions