Announcement

Collapse
No announcement yet.

How does CtP2 pick which goods a city wants?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does CtP2 pick which goods a city wants?

    I think Maq might be one of the few Veterans left that can answer this (I havent seen BigMC or IW in a while). But if anyone can:



    Looking at the trade window you see which cities are willing to "buy" a good. Does anyone know how this is determined? Is this random?


    knowing this I might find in the code a place to make a preference for a "strategic good" flag so the cities will demand horses and oil more often than not.



    I guess a long term goal would be to have an option to pick which good you want a city to buy and set a price for it. this would be important now that we have strategic resources and it would be a cooler trade system than Civ3 or Civ4 but dont get any hopes up my skills are too weak to do this alone.
    Formerly known as "E" on Apolyton

    See me at Civfanatics.com

  • #2
    I havent really looked for a pattern why it chooses which cities buy, but ive noticed that youll only get a few heavy-buying cities and all the rest dont buy any, so if you have 30 cities probably only about 5-10 will be willing to buy goods at all from anywhere, some want one good only, some want them all.

    Im sure that if a city is willing to buy one particular good from one place, itll be willing to the buy the same particular good from anywhere else it can find it. Like in CtP1 to create monopolies.
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

    Comment


    • #3
      thanks Maq, I do notice the list changes when you select own, friendly, and all and of course the number of goods.
      Formerly known as "E" on Apolyton

      See me at Civfanatics.com

      Comment


      • #4
        i always thought cities that lacked resources, were isolated, or were simply small always offered the best prices...then certain goods had more value than others

        Comment


        • #5
          As far as I know the price depends on the distance between the two cities. The closer two cities are the lower the gold from that trade route. However in the playtest version roads reduce the freight distance and thus the gold gain from that trade route drops if you reestablish it.

          -Martin
          Civ2 military advisor: "No complaints, Sir!"

          Comment


          • #6
            I see that Gold is usuallyl eft as '1' because that is also multiplied to the value of the gold.

            I was thinking of creating a bigger calculation to include population size of the city as well. I wanted to incorporate all_cities supply and demand and stuff but I havent got the handle on math in the code yet so I put it off...

            Thanks for the help, but it looks pretty random
            Formerly known as "E" on Apolyton

            See me at Civfanatics.com

            Comment


            • #7
              yea i like the idea of incorporating size, so that little cities won't likely be the highest bidders

              also, is it possible to include the rarity of the certain good on the map and w/in a nation?

              Comment

              Working...
              X