Skip to content
User Avatar
#152
Auto-translated
Winner
The console is complaining :(. It says:
Script ERROR: attempt to call a nil value
This happens at the very end – it seems to be the function in question.
P.S.: The script editor complained about the second 'end', so I removed it. Maybe I need to add some kind of 'else'?
Did you just copy it or rework it in your own way? Everything seems fine with the 'END' statements. Add a function identifier – the word function. But that's obvious, I think. I doubt you just copied it.
You're calling 'nil' instead of something. Check if the hero, function, or parameters exist. Unless, of course, the problem isn't with the word 'function' itself. :)

"Zosya" is obviously a fictional name. It should be the name of the enemy hero. If the enemy hero's name can be anything, just remove the condition.
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...