Skip to content
User Avatar
#1130
Auto-translated
It can be done like this:
function cut(array, index)
local ar
for i, e in array do
if i ~= index then
ar= e
end
end
return ar
end
For example, the operation mass=cut(mass, 0) will remove the element with index 0, and the length function for this array will return a number that is 1 less.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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