Thanks alerum68.
Yes, it is true that having enough espionage points allows us to see what is being researched. What I'm wanting instead is a triggered popup alerting me to the fact that someone is chasing Liberalism, for example, and I had best do the same if I want that extra Tech for researching it first. The same holds for a few other Techs whereby the first-to-research gets a GP (e.g, Physics yields a GS).
I dug around in the HOF mod and found code, invoked by the eventmanager during "onBeginPlayerTurn", that gives me a point in time to run a query on, say, whether another Civ is interested in open borders, vassal, permanent alliance, and defensive pact, which I rewrote as follows:
tradeData = TradeData()
tradeData.ItemType = TradeableItems.TRADE_OPEN_BORDERS
if ((((iturn -11+currentPlayer) % 3) == 0) and (pActivePlayer.canTradeItem(currentPlayer, tradeData, False))):
if (pTargetPlayer.getTradeDenial(activePlayer, tradeData) == DenialTypes.NO_DENIAL): # will trade
As you can see, the "iturn -11+currentPlayer) % 3) == 0" staggers this popup for each interested Civ to repeat every three turns (I have several other alerts set up, and I don't want them to all pileup on the same turn).
Credit for this goes to the guys that worked on the HOF mod.
There is code in there that will loop through resources to report on whether a Civ is willing to trade any of them - I'm in the process of figuring this out and modifying it for my own mod.
Thought I'd share what I found. Querying on whether there is a "TRADE_DENIAL" is something I wouldn't have figured out myself. So I appreciate the work the HOF modders did to figure this out.
Spocko