Hi.
I was looking for a mod to limit the unit movement. I´m playing a Earth scenario (made by myself) but i´m tired to fight the chineses roaming in France or Germany grounds. Historical, it´s not accurate.
I found this awesome mod So Far So Close (http://forums.civfanatics.com/showthread.php?t=316958), but it reduce the performance heavily. I´m playing with 45 players in my map.
I was thinking about a new way to limit the unit range (not aerial unit).
The unit will have "supply points" (SP). When the unit moves, one supply point is used. So, if the unit have 6 SP and moves 6 times, the unit dies. The SP is recharged only in cities.
By this way, i think the calculation process could be more quickly than "look" the culture on the So Far So Close mod.
SP would be increased by eras.
Program process:
Example SP=6
- If unit is in city, SP=6.
- If unit moves, SP=6-1 -> SP=5
- If SP=0, unit dies.
Second round
- If unit is in city, CP=6, if not SP=5
- If unit moves, SP=5-1 -> SP=4
- If SP=0, unit dies.
Notice that movement is the maximum displacement of the unit per turn, no matter of the route bonus.
Maybe could be nicer, but there´s a problem; i don´t know how to program it. Some one want to help me?
- Where i need to program? what files?
Thanks.
I was looking for a mod to limit the unit movement. I´m playing a Earth scenario (made by myself) but i´m tired to fight the chineses roaming in France or Germany grounds. Historical, it´s not accurate.
I found this awesome mod So Far So Close (http://forums.civfanatics.com/showthread.php?t=316958), but it reduce the performance heavily. I´m playing with 45 players in my map.
I was thinking about a new way to limit the unit range (not aerial unit).
The unit will have "supply points" (SP). When the unit moves, one supply point is used. So, if the unit have 6 SP and moves 6 times, the unit dies. The SP is recharged only in cities.
By this way, i think the calculation process could be more quickly than "look" the culture on the So Far So Close mod.
SP would be increased by eras.
Program process:
Example SP=6
- If unit is in city, SP=6.
- If unit moves, SP=6-1 -> SP=5
- If SP=0, unit dies.
Second round
- If unit is in city, CP=6, if not SP=5
- If unit moves, SP=5-1 -> SP=4
- If SP=0, unit dies.
Notice that movement is the maximum displacement of the unit per turn, no matter of the route bonus.
Maybe could be nicer, but there´s a problem; i don´t know how to program it. Some one want to help me?
- Where i need to program? what files?
Thanks.