Changing the UnitArtInfo via python?

Well, yes. But consider that I said "make it so that". You said: I was just suggesting which tag's behavior it would be logical to change. What could be more logical than making a unit with no data in its Civilopedia tag not show up in the civilopedia? Your only other options are to use some tag that isn't entirely related to the civilopedia or add a new tag, or to look for some specific value stored in the Civilopedia (or other somewhat random) tag (like, "SET_INVISIBLE", for example).

Ah, sorry, my fault. I'm using a build cost of -121 as the trigger to make the unit invisible in the Civilopedia, but your idea is maybe better. For the female CEO alone my solution works, but it may be that I'll make more units invisible in the future.

In both FFH and DW, unit art is switched on an instance basis. The code is rather small, but it is an sdk change. See the thread I linked above. I guess there is no python *only* solution for this.

Even if it is a small change it's still a change. For now my python solution works I guess, maybe if I make more use of this feature I'll change my sdk for it.
 
Back
Top Bottom