This is a biggie. I don't have script data set up and tried to play my mod (which works beautifully single player...though the AI isn't set up).
Two things I do in this mod is:
- Spawn a unit when a xy is triggered
- add a point if that spawned unit is held on another xy. When 10 points are reached, that player wins.
So I assume I would need to store the units created and the scoring in script data? Digging through American Revolution for examples, but any tips or explanations are highly appreciated.
A lot of python in Civ 4 seems to be very self-exploratory, so if I figure this out I'll post my working code here.
Two things I do in this mod is:
- Spawn a unit when a xy is triggered
- add a point if that spawned unit is held on another xy. When 10 points are reached, that player wins.
So I assume I would need to store the units created and the scoring in script data? Digging through American Revolution for examples, but any tips or explanations are highly appreciated.
A lot of python in Civ 4 seems to be very self-exploratory, so if I figure this out I'll post my working code here.