Skip to content

Variables inside variables not setting in full #49

@ghost

Description

Hey, I know you're not working on this project at the moment but thought I should record this problem anyway in case there's a fix.

I'm trying to set a variable to contain the data of other variables, like in the example below:

{set-var man-room-x {random 1 3}}
{set-var man-room-y {random 1 3}}
{set-var man-room room-x{var man-room-x}y{var man-room-y}}
location: {var man-room}

When I run the script in my game I would expect it to print something like location: room-testx1y1 but instead I get location: room-testx with everything after the first variable not printing, including the y character between the variables. I also get the same results if the original variables are regular numbers or strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions