let>personaje=1
Let>xdelpersonaje[1]=340
doesn't work
let>x=%xdelpersonaje[%personaje%]% interpetate is let>x=%xdelpersonaje[1]%
variable inside variable
Moderators: Dorian (MJT support), JRL
Re: variable inside variable
Hi, I guess you want to do this:
Code: Select all
Let>personaje=1
Let>xdelpersonaje[1]=340
Let>tmp=xdelpersonaje[%personaje%]
Let>x=%tmp%
Re: variable inside variable
Sorry, was too fast, in this case you can simplify it more.
Code: Select all
Let>personaje=1
Let>xdelpersonaje[1]=340
Let>x=xdelpersonaje[%personaje%]