Auto-translated
Maybe the object is named incorrectly? :) In such a situation, a console would be very helpful, try activating it. And also: in the MakeHeroI function, the first argument should be the hero's name. And also: I'm not sure, but I think the hero's name is incorrect there. I don't remember a hero named "Agata". You need to write the name that is in the hero's properties, not your own name.