HOW TO: mod unit that affects city maintenance

honeycuttmr

Chieftain
Joined
Mar 30, 2005
Messages
1
I've created a new Civilization: Texas, and a unique unit: Texas Ranger, (cavalry class). Here's where I'm stuck. The Texas Rangers were early mounted law enforcement in Texas, so I thought, let's give the unique unit the ability to affect city maintenance the way a courthouse does. Station a Texas Ranger in the frontier cities to maintain order and keep operating costs low. But I can't figure out how to create this affect. Any ideas?
 
Good idea, but wrong forum, I beleive.

I think requests and questions fit under the main 'Civ4 - Creation & Customization' forum.
 
honeycuttmr said:
I've created a new Civilization: Texas, and a unique unit: Texas Ranger, (cavalry class). Here's where I'm stuck. The Texas Rangers were early mounted law enforcement in Texas, so I thought, let's give the unique unit the ability to affect city maintenance the way a courthouse does. Station a Texas Ranger in the frontier cities to maintain order and keep operating costs low. But I can't figure out how to create this affect. Any ideas?

This isnt too hard to do and im working on something simliar actually but for a different type of unit. You will of course need to use some python. A good start would be to take a look at Roger Bacon's Assassin mod . The code he uses to check if the assassin has entered an enemy city can be easily modified to check if it has entered a friendly one instead. Then just make a new building that reduces city maintenance but call it something like "Ranger's Presence," or whatever you want. Then have that building automatically spawn in any friendly city anytime the Ranger sets foot in it.

-Naf
 
Back
Top Bottom