• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

[PYTHONCOMP] Roman Number Naming

sen2000

Chieftain
Joined
Oct 19, 2005
Messages
7
Roman Number Naming
by: sen2000

This mod will changes the name of unit to have a roman number.
f. ex. I. Archer, II. Archer. It also gives the computers units numbers.

You can changes the setting in the file CvCustomEventManager.py
You can set it to postfix the number and that the computers unit dont get numbers.

This is my first python code :)

I cound't find out how to get civilization to include my data in the sav-game, so i included Stone-D SD-ToolKit 1.22 to handle the saving. Thanx for the the code:goodjob:

I looked at the other naming mod out there, to find out have to write the code.
 

Attachments

How do you save what number you are up to? How does this work across sessions (save, reload)?
 
This is have i think it works

The SD-ToolKit puts my data in the datapool of the game. I don't how it is save with the game file, but it is.

I have only been programming pyton for 2 weeks, and i haven't been programming anything for the last 8 years, so my skills is not up to speed:)

You should trie to go to the SD-toolkit link

http://forums.civfanatics.com/showthread.php?t=146130
 
Back
Top Bottom