Auto-translated
Hmm, that's strange. If I use that code, there's 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 probably because I deleted the object and then tried to attach a touch trigger to it.
And here's another question: how do I give a hero specific skills?
First, I spent an hour trying to find "Fire Wars" (Elemental Summoning magic). I think I found it in the demon perk, but I'm not sure. Now I don't know how to install it correctly. I'm writing it like this:
It only gives the enhanced summoning magic... What should I do?
Added 32 minutes later
Yes, I understand, the error was probably because I deleted the object and then tried to attach a touch trigger to it.
And here's another question: how do I give a hero specific skills?
First, I spent an hour trying to find "Fire Wars" (Elemental Summoning magic). I think I found it in the demon perk, but I'm not sure. Now I don't know how to install it correctly. I'm writing it like this:
if HasHeroSkill ('Berein' , 12) == nil then
GiveHeroSkill ('Berein' , 12)
GiveHeroSkill ('Berein' , 12)
GiveHeroSkill ('Berein' , 53)
GiveHeroSkill ('Berein' , 97)
endIt only gives the enhanced summoning magic... What should I do?
Whatever