Announcement

Collapse
No announcement yet.

Starategy Database Questions

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

  • Starategy Database Questions

    I have some questions about the use of the function ConsiderStrategicState(int_t, int_t, inr_t)

    1) how long the AI will use the strategy? How can i make it stop using it? doest the second argument has something to do with it?

    2) Small strategies like STRATEGY_DEFENSE_* or STRATREGY_ISLAND can be used together (eg. use the fuction twice)? Does one totally replace the other or just complement each other?
    Last edited by Pedrunn; September 27, 2002, 16:21.
    "Kill a man and you are a murder.
    Kill thousands and you are a conquer.
    Kill all and you are a God!"
    -Jean Rostand

  • #2
    The first int_t is the player that should the strategy use, the last one is the index of the strategies database of the strategy that should be used. In the PW mod you find a variable as second argument, and is called ss_priority it has a value of 500. In other examples you find priorities of >9000. If it is just a turn number then this high value would garanty that the strategy is never left. But this is very unlikely. It seems rather that the higher the value of the second argument is the higher is the probability that the AI use this strategy.

    So to change your strategy back you would have to call this function again.

    Unfortunatly we don't have much inside these functions and how the strategies work in particular.

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

    Comment

    Working...
    X