Thread Tools
Old February 23, 2002, 14:54   #1
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 21:57
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Tile Improvement Rusher Code
Someone in the Civ3 forum pointed out that one of the problems of PW over the worker system is that you cannot simpler supply more labour (workers) and get it done in a faster time. With PW, you have to wait the 4 or so turns it takes to complete the TI.

So, never willing to accept that Civ3 is superior in any way (other than the AI, at the moment at least ), I thought I'd mod a way around it.

This script is the result. Everytime you lay a TI, you get an irritating little messagebox asking you whether or not you wish to rush its completion. If you press 'no', it works as normal, if you click 'yes', it attempts to rush the TI at the cost of ~1.5 times as much PW again. (some are more of a bargain that others) If you have insufficient PW, it tells you so, if you have enough, it completes it.

At present, the mod has to run as another mod through modswapper (prefix PW_ ) because of a small change to tileimp.txt. It should be simple to implement in any mod, so I'll describe how and why.

It seems the CreateImprovement event fires twice a turn, regardless of what is happening in the game, and each time, it attempts to create TI#1, default: an advanced mine. I don't know why.

Unless anyone can shed some light on this, the fix is to put a dummy TI as #1 in the file (actually in second place, after #0. CS... ). If you do this, add the lines CantBuild TERRAIN_XXX for every terrain type. Then it can't be built, and if you copied the advanced mine entry somewhere else, then it should take preference, and the rest works normally. See PW_tileimp.txt in the zip for the exact format.

Ben
Attached Files:
File Type: zip ti_rusher.zip (215.2 KB, 17 views)
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old February 25, 2002, 10:43   #2
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 17:57
Local Date: October 31, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Cool! cant wait to test it!
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand
Pedrunn is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 16:57.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team