Houman
TR Team Leader
- Joined
- Jan 24, 2002
- Messages
- 1,083
A question pops up in my mind; would it be possible to declare a global variable in Python that is alive through many turns?
Razing cities is going to fast in my opinion, while pillaging takes much longer than razing a whole city.
I thought I could determine the value for a global variable through the size of the city, is smaller than 5 pop, 3 turns, smaller than 10, 5 turns etc.
This number will be always determined for each city after end turn. if someone tries to raze a city, a trigger will be fired that allows the razing after so many turns like in the global variable.
But this won't be probably possible, since if the OnRaze function is called, it would be already too late. Maybe then, if the enemy has conquered the city in so many turns as in the global variable, then it should allow the Razing function (blocked before through a Boolean variable)
What do you think, is that possible?
Thanks
Houman
Razing cities is going to fast in my opinion, while pillaging takes much longer than razing a whole city.
I thought I could determine the value for a global variable through the size of the city, is smaller than 5 pop, 3 turns, smaller than 10, 5 turns etc.
This number will be always determined for each city after end turn. if someone tries to raze a city, a trigger will be fired that allows the razing after so many turns like in the global variable.
But this won't be probably possible, since if the OnRaze function is called, it would be already too late. Maybe then, if the enemy has conquered the city in so many turns as in the global variable, then it should allow the Razing function (blocked before through a Boolean variable)
What do you think, is that possible?
Thanks
Houman