Text prompt, buying units

jbryant

Prince
Joined
Jun 24, 2006
Messages
419
Location
State of Denial
Hello everyone.

One of the key features of my Iran-Iraq war mod is to allow both sides to buy equipment. Since both sides in the war bought new equipment from a variety of sources, I want to make this a feature. The deal is that oil wells will produce money every so many turns. I guess the purchasing deal would be like the mercenary purchase in RFC.

I have no idea how to use python or SDK, but if someone is willing to instruct me, I'm eager to learn how to pull this off.
 
One good way to get started is to take an existing modular component and make small changes. You may want to start with the "Mercenary modcomp" at this link. You should be able to customize it to contain the units and costs you want.

Have you modifed xml before? One way to model wells which generate gold, at least to come close, is to simply give a commerce value to the well improvement. This can be done by editing assets/xml/terrain/civ4improvementinfos.xml.
 
I have a "purchase reinforcements" screen in the mod that I'm working on. I'm hoping to release an Alpha version of the mod in the next couple of weeks. I've been saying that for a while, but hopefully I will stop adding new things to the mod so that I can actually get it done. :mischief:

Here's a screen shot if you are interested. The new units are placed on the highlighted plots with the next unit being placed on the plot with the arrows. I use reinforcement points, but it could be changed to $.

attachment.php
 

Attachments

  • Reinforcements.JPG
    Reinforcements.JPG
    152.7 KB · Views: 158
Wow that is one swanky looking screenshot, if you ever come out with it, I've got to have it. Thanks for the help guys, I'll get on it as soon as I get the units added.
 
Off topic: is that mod based off of the game the outfit for Xbox 360
On Topic: also looking for a system for my WW3 mod
 
Alright I installed the modcomp that davidlallen suggested and it installed fine and the game works fine. However, there are no available units in the mercenary window, how do I specify which ones are available to the player?
 
Back
Top Bottom