In-Game Python Interpreter

dowski

Monarch
Joined
Oct 6, 2001
Messages
95
Location
Ohio, USA
For those of you interested in interactively tweaking the game, you can access the Python interpreter while in the game if you have the "cheat code" enabled.

Instead of pushing "~" to bring up the cheat console, push <SHIFT> + "~" to get to the Python interpreter.

Maybe that info was available somewhere else, but I couldn't find it. Just stumbled upon it last night.

Christian
 
Yeah, but in that "gray box" you should be able to type python code and have it execute instantly.

I don't know my way around the civ4 api yet, but you can at least see what is available using this code:

Code:
from pprint import pprint
pprint(dir())

I'm sure some folks will figure out some cool stuff to do with the in-game interpreter.

Christian
 
Back
Top Bottom