Skip to content
User Avatar
#1138
Auto-translated
Dyrman
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?
Yes, but it is highly undesirable to mix strings with numbers, and to put values with indices "0" and 0 into the same array. A string index can be assigned in two ways:
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}
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4