For those of us who miss the Caravan unit from previous Civ's, you may want to take a look at this chunk of XML from CIV4UnitInfos.xml:
The "Trade" values are used by the Great Merchant to determine how much gold is generated by performing a trade mission. The "Hurry" values are used by the Great Engineer to determine how much it adds to the target city's production.
While we can't currently create active trade routes like we did with the Caravan previously, we can enable a unit to provide an instant production assist like the Caravan could. And we can make a "mini-Great Merchant" by giving the Civ4 Caravan unit a base trade value that would make it just slightly more valuable than having a city devote its production to gold (which makes sense since that Caravan is subject to destruction).
One thing to note is that for the AI to use these functions, you'll need to set the unit AI to a form that the AI can handle like so:
This will tell the AI to use it like a Great Engineer. Similarly, you can set the UnitAIType value to "UNITAI_MERCHANT" to have it treat the unit like a Great Merchant. Because of this, it might be recommended to create two units, one with each tag.
I'm currently playtesting Civ4 Caravan and Supply Train units but wanted to share the information I have rather than sit on it til I've finished creating and testing the new units.
Code:
<iBaseHurry>0</iBaseHurry>
<iHurryMultiplier>0</iHurryMultiplier>
<iBaseTrade>0</iBaseTrade>
<iTradeMultiplier>0</iTradeMultiplier>
The "Trade" values are used by the Great Merchant to determine how much gold is generated by performing a trade mission. The "Hurry" values are used by the Great Engineer to determine how much it adds to the target city's production.
While we can't currently create active trade routes like we did with the Caravan previously, we can enable a unit to provide an instant production assist like the Caravan could. And we can make a "mini-Great Merchant" by giving the Civ4 Caravan unit a base trade value that would make it just slightly more valuable than having a city devote its production to gold (which makes sense since that Caravan is subject to destruction).
One thing to note is that for the AI to use these functions, you'll need to set the unit AI to a form that the AI can handle like so:
Code:
<UnitAIs>
<UnitAI>
<UnitAIType>UNITAI_ENGINEER</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
</UnitAIs>
This will tell the AI to use it like a Great Engineer. Similarly, you can set the UnitAIType value to "UNITAI_MERCHANT" to have it treat the unit like a Great Merchant. Because of this, it might be recommended to create two units, one with each tag.
I'm currently playtesting Civ4 Caravan and Supply Train units but wanted to share the information I have rather than sit on it til I've finished creating and testing the new units.