• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How can I detect WHEORN using python ?

Negator_UK

King
Joined
Nov 14, 2007
Messages
758
Like the title says.

I've been scanning the python files for this capability, but I'm getting squared-eyed and still no luck.

It comes up on the help text in the contact screen (which I think is sometimes inconsistently called the diplomacy screen) but even if I try to do a system search for the contact variable from the main game screen ( WIDGET_CONTACT_CIV ) it doesn't show up.

Has anyone else done this ? or am I scanning the BUG files too :crazyeye:
 
BUG has a file called PlayerUtils.py. In there you will find a function isWHEOOH(playerOrID, askingPlayerOrID) which returns true or false. From the comment at the start of the function: "Returns True if askingPlayerOrID can see that playerOrID is WHEOOH."
 
Back
Top Bottom