Kailric
Jack of All Trades
As mentioned in the Economy thread we have started work on an AI for Traders/Peddlers. In the current development version we have implemented a new command, "Peddle Wares". Simply load your Peddler with goods and hit this command. The unit will then search for the best price in his Plotgroup, travel there, sale his wares, and then return home.
Current Features/Limitations:
-Requires the player to own at least one City for the command to appear
-Requires a Home City assigned to the unit. If you click the command and the unit has no Home City you will get a popup to choose one, you then must set the unit to Peddle Wares again (I bet I can set him to automate as soon as he has a home city)
-If the unit has no sellable Goods he will wait until you load some and then he will leave for the best city
-Contingencies such as war, losing a trade connection, losing its Home City, or target city being destroyed have been added to the AI. In such cases the AI will choose a different target city if possible, or drop its automation.
-If the Trader is on a foreign city that is not connected to its Home City and you issue this command the Unit will Auto Trade its wares at the current city. If it is connected to its Home City it will choose the best city in the Plotgroup and travel there which may not be its current plot city.
Question: Should this command only be available if the Unit is on a Plotgroup tile that is not connected to the Player, and otherwise the Player must trade manually?
Future Features/Ideas
New Trader Command: this command will allow you to do several things
-Set the Goods the Trader should Buy/Sell
-Set the Priority of these Goods
-Set the Amount of Gold the Trader has to spend
-Set wether the unit should return the Goods to his Home City or Distribute them to importing Cities.
Other Commands/Features/Ideas
-Fully Automate: The Trader will use his own judgement and the amount of gold you have set for him to Buy and Sell in order to make you profit. The Unit will find low priced Goods to buy and Markets where he can sell it to make a profit.
-Trader Promotions: As the Trader makes deals he gains experience which can be spent on New Trader Promotions
These are some of the initial features and ideas. Please feel free to add your own ideas
and comments.
Explanation of Code posts
http://forums.civfanatics.com/showpost.php?p=13639671&postcount=13
Current Features/Limitations:
-Requires the player to own at least one City for the command to appear
-Requires a Home City assigned to the unit. If you click the command and the unit has no Home City you will get a popup to choose one, you then must set the unit to Peddle Wares again (I bet I can set him to automate as soon as he has a home city)
-If the unit has no sellable Goods he will wait until you load some and then he will leave for the best city
-Contingencies such as war, losing a trade connection, losing its Home City, or target city being destroyed have been added to the AI. In such cases the AI will choose a different target city if possible, or drop its automation.
-If the Trader is on a foreign city that is not connected to its Home City and you issue this command the Unit will Auto Trade its wares at the current city. If it is connected to its Home City it will choose the best city in the Plotgroup and travel there which may not be its current plot city.
Question: Should this command only be available if the Unit is on a Plotgroup tile that is not connected to the Player, and otherwise the Player must trade manually?
Future Features/Ideas
New Trader Command: this command will allow you to do several things
-Set the Goods the Trader should Buy/Sell
-Set the Priority of these Goods
-Set the Amount of Gold the Trader has to spend
-Set wether the unit should return the Goods to his Home City or Distribute them to importing Cities.
Other Commands/Features/Ideas
-Fully Automate: The Trader will use his own judgement and the amount of gold you have set for him to Buy and Sell in order to make you profit. The Unit will find low priced Goods to buy and Markets where he can sell it to make a profit.
-Trader Promotions: As the Trader makes deals he gains experience which can be spent on New Trader Promotions
These are some of the initial features and ideas. Please feel free to add your own ideas
and comments.
Explanation of Code posts
http://forums.civfanatics.com/showpost.php?p=13639671&postcount=13