Open BMagnu opened 2 years ago
Seems like an idea that's about 20 years overdue, really
A ship display name feature already exists. The only thing needed is the change-display-name SEXP.
Axem already created a lua sexp for me a little while back that does just this, and I'd be happy to redist it. Certainly wouldn't be a bad idea to create a real sexp though.
Seems like this sexp already exists in ship-change-alt-name
unless alt names and display names are specifically different?
Dark Visor is working on this.
Sometimes, a ship might want to change its name. Turns out, scripting can do that already. Buuut, caveat: You need to refer to the ship in question through when-argument SEXPs going forward, as you need to call it by its new name, but the SEXP error checker will refuse the new name as no such ship exists at parse time.
One solution to that problem is to have a name change SEXP that'll iterate through the SEXP tree, each ship's / parse_objects AI goal target names, arrival/warpout conditions and so on and update the references accordingly. But that's brittle, as we see with ship-change-class which reaches less far than change-name would.
The suggestion is thus to introduce a display-name which is used for all user-facing display, but for no internal addressing. This could then be freely changed by SEXP without concerns.