I'm currently scripting a build order trainer and was wondering how I can get the name (translation) of an upgrade. Is there a function such as UnitTypeGetName for upgrades?
Little late with the response, but..
Upgrade names (and not only) are in GameStrings.txt. For instance: https://github.com/SC2Mapster/SC2GameData/blob/36206ed2977af377c290b5b6034f32237af4d67d/mods/liberty.sc2mod/enus.sc2data/LocalizedData/GameStrings.txt#L9721
To reference the name you've to use StringExternal function.
s = "UpgradeID";
StringExternal("Upgrade/Name/" + s);
Previously known as: SomeoneTookMyNameTT