Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Civs love each other now
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 24-12-2000 09:43
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Civs love each other now Support Apolyton buy from Amazon


Playing around the diplomacy.txt, I was able to get the AI civs love each other (a big change from them being constantly at war!)

The trick is (I believe)
a. Change the number in top of diplomacy.txt to # 3
instead of # 2 . I believe 2 is a mistype.
b. Change the various incursion/invasion numbers (these are per-turn regard numbers) in
DEFAULT diplomacy to 0. Thus, AIs won't hate each other for minor actions.
c. Add more meat to the MAKE_FRIEND diplomacy type. Right now it is pathetically meaningless. In particular, increase the priorities of the good proposals such as GIVE_GOLD, etc.

All the above changes are in diplomacy.txt. Make sure that you don't change the order of the various ProposalElements, else the game may crash in a few turns. Also, don't use the function
ChangeGlobalRegard(player, delta, explanationID).
I crashed the game a few turns after this was used.

Heck, some of these civs that loved me even began offering me gold! Also, at least one civ was at war with another, so there is some fight going on.

BTW, I also added an extra bit of diplomacy SLIC, to the effect that
"If the minimum distance between AI1 cities and AI2 cities is greater than 20 (or whatever you want), ConsiderDiplomaticState(...,MAKE_FRIEND,...)".
This may also have created the above lovebug. I was unable to verify if this piece of code is the one responsible for all that love, because I don't know how to access the player's current diplomatic states.

Clearly, other conditions can be similarly created, depending on the opponent's strengths.


MarkG
Guest

Not Yet
time:
Post  Old Post 25-12-2000 03:47
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

from what you're saying, the ai also loves "easier" you as well, right?

the better(?) would be to love other ai's and hate you(i think)

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 25-12-2000 05:31
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Remove this text


Well you're right. I was just trying to be fair

Programming the AIs to hate the human is fairly easy - just add the check that ~IsHuman(player[1]) or some such in the code that spreads the love.

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 25-12-2000 05:33
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Currently the diplomacy2.slc that I've made is as below. Consider it a gratuitous Christmas gift

diplomacy2.slc (include this in script.slc):


int_t messarmysize;


HandleEvent(NextDiplomaticState) 'Distance_NextDiplomaticState_F' pre {

int_t mnctyapart;
int_t clsecity;
int_t dist_measure;

mnctyapart = 300;
clsecity = 100;

int_t i;
int_t j;
int_t play0;
int_t play1;
int_t db_index;
int_t ss_priority;


city_t capcity0;
city_t capcity1;
int_t flagthreat;

flagthreat = 0;

// capcity0 = player[0].capital; // Broken !!
// if (CityIsValid(capcity0)) {
// }
// else {
// capcity0 = player[0].largestcity; //Broken!!
// }

for (i=0; i for (j=0; j GetCityByIndex(player[0], i , capcity0);
GetCityByIndex(player[1], j , capcity1);

dist_measure = SquaredDistance(capcity0.location, capcity1.location);

if (dist_measure < mnctyapart){
if (dist_measure < clsecity) {
// hey, this guy is too close!
flagthreat = 2;
}
elseif (flagthreat == 0) {
// close, but not that close
flagthreat = 1;
}
}

}
}

if (flagthreat == 0) {
// Be nice to the guy! He's too far
ss_priority = 5000;
db_index = DiplomacyDB(DIPLOMACY_MAKE_FRIEND);
ConsiderDiplomaticState(player[0], player[1], ss_priority,db_index);

}
elseif (flagthreat == 2) {
// this guy is real close. he'll be a pain!
if (player[0].militaryunits > 2*player[1].militaryunits) {
//Go get him!! he's very weak!
ss_priority = 5000;
db_index = DiplomacyDB(DIPLOMACY_PROVOKE_WAR);
ConsiderDiplomaticState(player[0], player[1], ss_priority,db_index);
}
elseif (player[1].militaryunits > 2*player[0].militaryunits) {
//Don't provoke!! he's very strong!
ss_priority = 10000;
db_index = DiplomacyDB(DIPLOMACY_DEFAULT);
ConsiderDiplomaticState(player[0], player[1], ss_priority,db_index);
}
}

}

[This message has been edited by colorme (edited December 24, 2000).]

MarkG
Guest

Not Yet
time:
Post  Old Post 26-12-2000 23:43
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

i have this wierd feeling that lots of people would prefer it if you package this as a mod

colorme is offline colorme
Warlord

Nov 2000
time: 05:14
Post  Old Post 28-12-2000 02:49
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete


I'm too lazy to do that. Also, it is not clear yet if the above helps ...

I also changed diplomacy.txt (that's the file that defines the different diplomatic states). The most important change I made there is setting the

invasion,incursion regards in DIPLOMATIC_DEFAULT equal to 0 per turn.

Right now, the way it is set, the AIs soon start hating each other because a couple of solitary enemy units are wandering about their empire.

In the most recent game I played, I have the AI warring with at most one or two other AIs; a big change from my earlier games where everyone hated everyone else!

Unfortunately, I haven't been able to get any one AI to completely crush its weaker neighbor yet ...

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0311 seconds (89.26% PHP - 10.74% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net