Espionage API

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,721
Location
Near Portsmouth, UK
Are there any Lua methods that relate to agents, eg

  • AddAgent
  • PromoteAgent
  • KillAgent
  • Start / Stop tech stealing (sometimes I'd just like to be able to spy on a civ without stealing their techs!)

Can't find any in the core lua files, just wondering if anyone has discovered any on (for example) the Player object

If not, the whole ability to mod agents is severly limited :(

W
 
Hello.

I investigated the topic after G&K was released and as, far as I know, none of those are possible. :(
And the datamining I performed on the API documentation I am working on tends to confirm this.
 
Rats! That rather confirms what I though then.

So while we can get funky and make spies do other things, we have no way to implement consequences - pity :(
 
I've started to implement these in the DLL

Are there any Lua methods that relate to agents, eg

  • AddAgent - DONE
  • PromoteAgent - DONE
  • KillAgent
  • Start / Stop tech stealing / rigging elections - DONE

KillAgent() will be done by setting the "detected" state (when I can work out how!) to undetected/detected/identified/killed and (hopefully) with/without diplomatic repercussions (default with)
 
While you're knee-deep in the source code, do you see how to give spies the ability to city-view a city state?

Pretty sure you can do that in Lua. Check out "ViewCityButton" in "EspionageOverview.lua" in "C:\Program Files (x86)\Steam\SteamApps\common\sid meier's civilization v\assets\DLC\Expansion\UI\InGame\Popups"
 
Back
Top Bottom