Variable with a variable in it

Hey all , I have a problem and so far I haven’t been able to solve it myself or with the help of teh internet, so I am asking you for help :slight_smile:

the problem is that I have this variable (the * is a number, _root.mob doesn’t really excist)

_root.mob*

and I have another one

_root.mobnumber

so what I want is that the name of the _root.mob* gets changed for example

_root.mobnumber = 13;
_root.mob(_root.mobnumber) = 1;

and as a result it will be _root.mob13 = 1;

I know this isn’t the right code but I have tried it in so many ways now and im getting confused and stuff, im pretty sure its not hard to solve for you guys :slight_smile:

Thanks in advance