How can I get all 3 values from a Map with the key "2" ? Right now it takes always the last one from any number, for example if i type in "1" it will take the last letter of it "f".
Is it because there is no loop ?
How can I get all 3 values from a Map with the key "2" ? Right now it takes always the last one from any number, for example if i type in "1" it will take the last letter of it "f".
Is it because there is no loop ?
AFAIK, it is not possible to directly store multiple values with the same key in Stencyl, nor in any programming language. Each value will overwrite the previous one, which is why your
2
key is returningi
. Instead, you could consider these workarounds:0a
,0b
,0c
,1a
,1b
,1c
, and so on. It's pretty simple to get the values with this method.0
isa,b,c
,1
isd,e,f
, and so on. Then you can use the list blocks withsplit (value of 0 for TT) using separator ,
to get the 3 values (which will bea
,b
andc
).If you have any questions about either of these methods, don't hesitate to ask!