Hmm, that's strange. If you write such code, there is no error. I'll try playing around with the console again and post the entire function. I probably focused on the wrong thing...
Added 32 minutes later
yes, I understand, the error was most likely because I deleted the object and then tried to attach a touch trigger to it.
And here's another question: how to give a hero specific skills?
First, I spent an hour trying to find Fire Wars (Summoning magic for elementals). I think I found it in the demon perk, but I'm not sure. Now I don't know how to set it up correctly. I write like this:if HasHeroSkill ('Berein' , 12) == nil then
GiveHeroSkill ('Berein' , 12)
GiveHeroSkill ('Berein' , 12)
GiveHeroSkill ('Berein' , 53)
GiveHeroSkill ('Berein' , 97)
end
It only gives advanced summoning magic...What should I do?
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4