Can't get avatars to show right

Problem: I let users choose avatars like this (multiple users):

and then when I try to show that avatar back in another slide like this (I tried both localstorage and objects):

it shows the one right after that. I mean if the user chooses the 4th avatar, it shows the 5th one. When I console.log the prez.variable(‘playerOneAvatar’) it shows the right number. But I guess it’s an index number?

UPDATE: I even tried this way and it’s still not working.

ActivePresenter version: 9

OS: Windows 10

Notes:

Hi,

Type of status name var should be the TEXT type if you use script to set state.
In case you want to use action, please send your project so that we can take a look.

Regards,
Hoa

1 Like

Thank you so much! I did it. I changed the variable to a text one and now it’s working :smiley: :smiling_face_with_three_hearts: