Mod: Gold Per Turn

marshmanthe1st

Chieftain
Joined
Dec 6, 2003
Messages
8
If you want to get a certain amount of Gold Per Turn the following Mod is for you.

Before making any changes I recommend backing up the CvEventManager.py file as we will be modifying the standard file.

Location the section starting

def onBeginPlayerTurn(self, argsList):

and add the following after the current lines

'Increment Human Player Gold each turn'
player = gc.getPlayer(iPlayer)
if (player.isHuman()):
player.setGold(player.getGold() + 1000)


You will now receive 1000 Gold each turn.
 
Or if you don't want to modify the standard game files:

1. Make a copy of the CvEventManager.py file
2. Create a folder in your 'Mods' folder, and name it '1000Gold'
3. Create an 'Assets' folder in the '1000Gold' folder
4. Create a 'Python' folder in the 'Assets' folder
5. Put the copy of your CvEventManager.py file in the 'Python' folder
6. Make the modifications suggested by marshmanthe1st
7. Save the modified copy of CvEventManager.py
---
8. Start the game
9. In the menu, select 'Advanced'
10. Select 'Load Mod'
11. Select the '1000Gold' mod and load
12. The game restarts and now you can start a game and get 1000 gold each turn, and once you restart the game again, you'll be back to normal Civ.
 
Pardon me and sorry if i sound newbish on this matter,but could you please post the exact Modifications done in the .py folder.

Everytime i seem to modify the CvEventManager.py under the specified
def onBeginPlayerTurn(self, argsList): ,i get the Error Failed to initialise Python.

thanks in advance
 
I could not get that to work. I think I put the text in th wrong place. Could you maybe post that file?
 
It works alright, but unfortunately the forum messes up the indentation in the lines that marshmanthe1st posted.

Make sure the last line is indented/'tabbed', so it looks like this:

Code:
'Increment Human Player Gold each turn'
player = gc.getPlayer(iPlayer)
if (player.isHuman()):
--tab---> player.setGold(player.getGold() + 1000)


Edit: I could post the modified file, but unfortunately don't have the released game yet, sorry.
 
Back
Top Bottom