how to check a player(ot team) whether completed a project

Seraphim8400

Warlord
Joined
Nov 7, 2010
Messages
112
EX i want to check
does japan civ completed the APOLLO_PROGRAM

another question
i want a function run at the moment that a player complete a wonder
and check the ID of the player
can i have such an EVENT?
 
Teams [ Players[ 0 ] : GetTeam() ] : GetProjectCount( 1 );

where 0 is japan player id and 1 is id of apollo, should return 1 if they built it

for wonder, maybe one of the Wonder events can catch it for you. if not you can just keep track of players, cities and buildings and check on a players turn. since its not simul moves, you can check the player ids sequentially (also i think this means id 0 will build it before id 1 if all things are equal)
 
thx very much
about second question
i think you mean like this
check all player whether completed the wonder(EX Great wall) at turn start
is it right?
 
yes or some of these events could do it (sdk/ModBuddy/Help/Civ5LuaAPI.html under Static->Events)

Events.WonderTypeChanged
Events.WonderStateChanged
Events.WonderTogglePlacement

not sure when these are triggered, but i'm guessing they are related to wonders being built
 
yes or some of these events could do it (sdk/ModBuddy/Help/Civ5LuaAPI.html under Static->Events)

Events.WonderTypeChanged
Events.WonderStateChanged
Events.WonderTogglePlacement

not sure when these are triggered, but i'm guessing they are related to wonders being built

i test all of them
but no one can be triggered when wonders being built/occupied/disappeared
 
Back
Top Bottom