Skip to content
User Avatar
#1134
Auto-translated
There isn't a standard one.
length is also not standard.
function length(array)
	local count = 0
	for index, element in array do
		count = count + 1
	end
	return count
end
It is defined this way in common.lua.
What if you add an array element later? Will you have to manually write the shift? )))
Why?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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