This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hello,
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?
Kind regards,
downToHell3
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
Hello,
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?
Kind regards,
downToHell3
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.
Previously known as: SomeoneTookMyNameTT