how to find the script name of an object
Heroes already have a name assigned – but I can’t remember where to find it. I think you select the hero, press Space, and it should be clear from there; there should only be one English name. Something like RedHeavenHero01, Orlando, etc.
And how to set up “collect so much gold”?