This is just a question to get an understanding of how difficult this might be or if it's even possible. Would it be possible to make a trigger or ability of some sort that would allow the user to rename any of their structures or units in-game? This would be for organization purposes or for keeping track of certain things.
An example to help explain:
The player would select the unit or structure (or multiple units/structures), use a text command "/rename (new name goes here)" then it shows the new name on the selected units/structures without modifying them in any way other than the name (in other words, not modifying the unit's abilities and upgrades).
The ability or text command would only modify the selected unit/structure, not all of that particular unit/structure type. An example: If you had two Command Centers and you wanted to rename one of them to "Base", then you'd have one named "Base" and another named "Command Center".
Or would all of this be completely impossible because renaming the unit/structure would make all of the data invalid?
This is just a theoretical question; I'm just curious to know if it'd be possible.
Should be possible with a global unit array and by hooking up layout files, specifically GameUI/UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneUnit/NameLabel
If not you could hide the default unit label and create your own with dialogs and recreate the same functionality.
This is just a question to get an understanding of how difficult this might be or if it's even possible. Would it be possible to make a trigger or ability of some sort that would allow the user to rename any of their structures or units in-game? This would be for organization purposes or for keeping track of certain things.
An example to help explain: The player would select the unit or structure (or multiple units/structures), use a text command "/rename (new name goes here)" then it shows the new name on the selected units/structures without modifying them in any way other than the name (in other words, not modifying the unit's abilities and upgrades).
The ability or text command would only modify the selected unit/structure, not all of that particular unit/structure type. An example: If you had two Command Centers and you wanted to rename one of them to "Base", then you'd have one named "Base" and another named "Command Center".
Or would all of this be completely impossible because renaming the unit/structure would make all of the data invalid?
This is just a theoretical question; I'm just curious to know if it'd be possible.
Should be possible with a global unit array and by hooking up layout files, specifically GameUI/UIContainer/ConsoleUIContainer/InfoPanel/InfoPaneUnit/NameLabel
If not you could hide the default unit label and create your own with dialogs and recreate the same functionality.
@PirateArcade | I make games | Ask me things on Discord