I made a mod that features a popup when a unit spends enough time in certain terrain types. When testing it, however, I found that I get the popup even if it's not my unit. How do I make a PyPopup (or a CyPopup, I'm not picky) appear for only one player?
I have my popup appearing inside a loop that goes through all players, so I can refer to the relevant player easily enough. I'm just not sure where to put that reference.
I have my popup appearing inside a loop that goes through all players, so I can refer to the relevant player easily enough. I'm just not sure where to put that reference.