That's right. But it's not difficult to write it yourself, but it would be great to have the ability to use a match table or some kind of library... :rolleyes:
Added 5 minutes later
Can the index be assigned as a string?
array["string"] = element
array.string = element
but in the second case, string must conform to the standards of ordinary variable names.
array = {["Chupa"] = 0, ["Lapa"] = 2, ["Nuba"] = 0, ["Roma"] = 2}
or
array = {Chupa = 0, Lapa = 2, Nuba = 0, Roma = 2}
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4