Custom scenario

maximaxoo

Chieftain
Joined
Oct 8, 2005
Messages
9
Hi

I'd like to do something which I thought quite easy but seems somehow tricky: I want to play the Rise of Rome scenario with specific game options (no culture flipping, no city razing). I tried the "Custom scenario" menu item but everything is disabled in this screen (I wonder what is the point of this menu).

Is there a way to select specific game options for a scenario either with XML modding or with python tweaking?
 
Sorry to answer to my own post, but I've found a way and maybe someone can be interested.

In the "Rise of Rome" mod directory I've edited the "CvRiseOfRomeEventManager.py" python file: just under the def "onGameStart(self, argsList):" event I've added the following line of code:
gc.getGame().setOption(GameOptionTypes.GAMEOPTION_NO_CITY_RAZING, 1)

For other game options choose in the following list:
GAMEOPTION_NO_CITY_RAZING,
GAMEOPTION_NO_CITY_FLIPPING,
GAMEOPTION_FLIPPING_AFTER_CONQUEST,
GAMEOPTION_NO_BARBARIANS,
GAMEOPTION_RAGING_BARBARIANS,
GAMEOPTION_AGGRESSIVE_AI,
GAMEOPTION_RANDOM_PERSONALITIES,
GAMEOPTION_NO_TECH_TRADING,
GAMEOPTION_PERMANENT_ALLIANCES,
GAMEOPTION_ALWAYS_WAR,
GAMEOPTION_ALWAYS_PEACE,
GAMEOPTION_ONE_CITY_CHALLENGE,
GAMEOPTION_NO_CHANGING_WAR_PEACE,
GAMEOPTION_NEW_RANDOM_SEED,
GAMEOPTION_LOCK_MODS,
GAMEOPTION_COMPLETE_KILLS,
GAMEOPTION_NO_VASSAL_STATES,
GAMEOPTION_NO_GOODY_HUTS

I hope it'll help someone.
 
Back
Top Bottom