Arctic Circle
Prince
- Joined
- Apr 24, 2008
- Messages
- 473
Hello fellow modders!
While I've managed to make some interesting things with the Jotnar mod, for example re-introduce the 'great wall' from vanilla civ as a civilization specific wonder (instaed of a world spell), made sure that all cities (conqured or built) starts with a Steadding etc..
Some things are a little tricky and I'd appriciate some tips or links.
- Make units unbuildable, so that you can't build them, only upgrade a unit to that unit. where is this set?
- How do I set in python that cities can't grow more then 10? I've written a few examples. But they do not seem to work. Example below:
- How do I create a unit that have a change each turn to change into another unit?
Thank you
While I've managed to make some interesting things with the Jotnar mod, for example re-introduce the 'great wall' from vanilla civ as a civilization specific wonder (instaed of a world spell), made sure that all cities (conqured or built) starts with a Steadding etc..
Some things are a little tricky and I'd appriciate some tips or links.
- Make units unbuildable, so that you can't build them, only upgrade a unit to that unit. where is this set?
- How do I set in python that cities can't grow more then 10? I've written a few examples. But they do not seem to work. Example below:
Code:
def cannotGrow(self,argsList):
pCity = argsList[0]
pPlayer = gc.getPlayer(pCity.getOwner())
if pCity.getPopulation() >= 10:
if gc.getPlayer(pPlayer).getCivilizationType() == gc.getInfoTypeForString('CIVILIZATION_JOTNAR'):
return True
else:
return False
else:
return False
- How do I create a unit that have a change each turn to change into another unit?
Thank you