Danmacsch
Geheimekabinetsminister
Hi,
I'm trying to come up with a bunch of functions for a project of mine.
I have a lot of different questions and requests for help, and all advice is very welcome
In the following I've listed some of the functions I'm having trouble with. I have tried to write the code myself of course, and I will post my attempts once I'm home (sometime tonight).
1) A function to detect the number of DoF's you currently have with other major civilisations.
2) A function that gives the player a percentage of the gold and culture generated by civilisations with whom you have a DoF.
3) A function to detect when a worker has chopped down a forest somewhere on the map
4) probably a little more complicated. Letting a unit build an improvement on city-state territory and having two possible outcomes: a) instant decrease in influence and b) puppet city-state.
That's it for now. I really hope someone can help me.
I'm trying to come up with a bunch of functions for a project of mine.
I have a lot of different questions and requests for help, and all advice is very welcome
In the following I've listed some of the functions I'm having trouble with. I have tried to write the code myself of course, and I will post my attempts once I'm home (sometime tonight).
1) A function to detect the number of DoF's you currently have with other major civilisations.
2) A function that gives the player a percentage of the gold and culture generated by civilisations with whom you have a DoF.
3) A function to detect when a worker has chopped down a forest somewhere on the map
4) probably a little more complicated. Letting a unit build an improvement on city-state territory and having two possible outcomes: a) instant decrease in influence and b) puppet city-state.
That's it for now. I really hope someone can help me.