Herostratus
Grim Harbinger of Things to Come
- Joined
- Jul 24, 2009
- Messages
- 116
I'd like to make it possible, in my mod, for each unit to somehow "know" what city it was built in, and retain that information so that the player can see it. I envision a new line somewhere (either when you click on the unit or just in the lower-left mouse-over pop-up) that says "Home City: ____"
Extra challenge: must be doable in Python only, not SDK! *And* must be multiplayer-friendly (i.e., if it causes OOS, I'm not doing it).
The fact that AI home-cities might be readable on their units is not particularly concerning to me, even though it's theoretically a minor way of cheating ("Oh, I see Abe built New Orleans").
I don't know enough about Python to begin to understand how to approach this, but I know enough about Python to feel like this request is a long shot. Anybody know if/how this could be done?
Extra challenge: must be doable in Python only, not SDK! *And* must be multiplayer-friendly (i.e., if it causes OOS, I'm not doing it).
The fact that AI home-cities might be readable on their units is not particularly concerning to me, even though it's theoretically a minor way of cheating ("Oh, I see Abe built New Orleans").
I don't know enough about Python to begin to understand how to approach this, but I know enough about Python to feel like this request is a long shot. Anybody know if/how this could be done?