Changing the production of a project (or building) through event

liwy

Chieftain
Joined
Nov 15, 2009
Messages
63
Location
Brussels
I want to make an event when a project is slowed by some problem, my first idea is that the rocket exploded, preventing the trip to the moon. The problem is that all the project python elements I found focus on "Is the project completed?" while I want to remove 10% of it's production investment (a bit like the spying mission but it makes it return to 0 :hammers:

Thanks in advance.
 
Are you looking for a trigger for this effect, or do you want to know how to code the effect?

If it is the latter, you can just use city.getProduction() to get the currently invested production and city.setProduction() to set a new value, the rest is basic arithmetics :)

For the former, you need to go into some more detail what you want to trigger this event.
 
Top Bottom