Help with autocreate buttons

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Alexandr

Hello. In general, I am doing a kind of framework for a text game and I ran into a problem.
Made a function that creates buttons from an array. The array is created at the location as

G.butArray.append ("GetVar/edit/item/s_var + 1/")

Using regular expressions, I pull data from it, and then use it. For example, to give the name of the button. But the problem is not quite that. If you look at the end of the line namely on s_var + = 1. Instead of it there can be any other command, or even several. And here it is necessary to do so that I could give the function connect to give the data that will help make the signal to the button correctly. Is there a more convenient way to store data other than arrays in this case?

:bust_in_silhouette: Reply From: ShivaRa

Maybe you need type Dictionary. Check it: