i need to save in Multidimensional Array some itemes of other array but don’t have any idea how to modify this
While I don’t know how the rest of the code is formatted, I can tell you want to access an array attached to a string. Instead of using a multidimensional array, which can only use arrays of one type, I recommend using a map instead like below.
var SwordTiers : [string][]int = map{"Common" => array{1, 2, 3}, "Rare" => array{1, 2, 3}}
# [string] is the key type you use to access the value type, which is []int.
# You can set the values using an if-statement.
if (set SwordTiers["Common"] = array{3, 4, 5}){}
If you need more ideas or a better explanation you can check Epic’s documentation on maps.
Happy mapping!
1 Like
yeap, i found that multidimensional dosen’t work corretly.
thanks
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.