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!
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!