Skip to content
User Avatar
#2708
Auto-translated
landw1rt, this version of the operator is designed to iterate through tables, but your function returns a string. Simply use GetPlayerHeroes():

local hero_cnt = 0;
for i = PLAYER_1, PLAYER_8 do
hero_cnt = hero_cnt + length(GetPlayerHeroes(i));
end

I haven't tested the code, so I might be wrong.
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо