Thread Tools
Old September 27, 2002, 14:10   #1
Pedrunn
Call to Power II Democracy Game
King
 
Pedrunn's Avatar
 
Local Time: 05:38
Local Date: November 1, 2010
Join Date: Jul 2001
Location: of Natal, Brazil
Posts: 2,555
Strategy 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?
__________________
"Kill a man and you are a murder.
Kill thousands and you are a conquer.
Kill all and you are a God!"
-Jean Rostand

Last edited by Pedrunn; September 27, 2002 at 16:21.
Pedrunn is offline  
Old September 27, 2002, 15:56   #2
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 10:38
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
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!"
Martin Gühmann is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:38.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team