Several Questions for My Mod

Sanguivorant

Submitter
Joined
Jun 26, 2012
Messages
1,375
Location
Calgary, Canada
Hello.

So I am thinking of making an Insurgents mod, which allows you to play as a terror organization.

The main features of the mod will include a unit called the Insurgent, which acts pretty much like a privateer and can only be detected by spies. It can switch into a Sleeper unit, which behaves like a Spy and can be moved (Paradropped) anywhere. The Insurgent can construct a terror cell on a tile, which gives you cultural control over the tile as well as provide defence.

Most of these are easy to mod in, but there are some questions I have:

1) Is there any way to make it so that terror cells are automatically pillaged if you do not have a unit inside of it?

2) Is there any way to make it so that a terror cell has a chance to spawn a unit on its tile?

3) How do I make it so that I can upgrade a unit into a different unit for free and on any tile?

Thanks for helping me if you can.
 
Your third question is quite in the field I'm investigating on (http://forums.civfanatics.com/showthread.php?t=532255). I I found a python function that deal quite well with the free part of the upgrade : getUpgradePriceOverride() in GameUtiles.py. But it seems that the upgrade outside of the territory is quite tricky in the dll, see my thread on thoughts about that.

Sorry I can't help on the other questions, I'm quite new in modding :p
 
Back
Top Bottom