Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

Set between two variables.

$
0
0
What is the behaviour when you set a variable to another variable? I am using Sugarcube 2.

Say I have $array which is an array of characters and I go:

<<set $array[0].name to "foo">>
<<set $char to $array[0]>>
<<set $char.name to "bar">>

Will &array[0].name now be foo or bar? It seems to be very inconsistent, with the value sometimes retroactively updating and sometimes not. Is there some update mechanism which triggers in specific situations?

Thanks!

Viewing all articles
Browse latest Browse all 1844

Trending Articles