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 > Question about AI Modification
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
VisionV is offline VisionV
Settler

May 2001
time: 05:15
Question  Old Post 14-08-2001 22:29
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Question about AI Modification Support Apolyton buy from Amazon

I have three questions:

1) I want to make it where if a trespassing enemy unit is killed within my territory, it is not necessarily an act of war. Especially if the enemy has agreed to remove troops in the past and still is not. This has been a particular problem where one neutral civ had warships blocking my ports. I asked them to leave and they consented, but stayed there while another civ destroyed improvements at will because I could not get my fleet out of port. I did not want to go to war with the neutral civ if I did not have to as we had a trade pact and the two civs together would have been too powerful. Can I edit that parameter somewhere?

2) Can I put an "Are you sure?" message in for if I accidently attack an allied player's unit by moving into it. I ran into one by accident, and all the work I had done get that player to ally with me was lost when he declared war in outrage.

3) Also, how do you tell an allied player to move his unit if it is blocking your road? My ally sent troops into my territory (I guess to help defend me), but after the battle, fortified them on my main unit transfer road.

BTW, I like the Apolyton Pack and the terrain mods. One square island cities were the best in the original game because they could not be attacked until later and they had food, production and commerce. Removing the production from sea spaces and river spaces adds more realism.

Thanks!

mapfi is offline mapfi
Prince
Zurich, Switzerland
Jul 2002
time: 06:15
  Old Post 07-09-2002 14:52
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Increase the size of your Attachments

*bump*

This was probably written when there was noone in the forum. I found it when looking for stuff for the hidden nationality.
As for the third idea - that's something for diplomacy and i'll just keep my hands of that.
Nr.2 seems to me as it would be rather easy - if we can check if a unit.owner is allied with the player. Can we?
Nr.1 Part of it is solved by the slic that automatically removes landunits, can we extend that to naval units?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:15
  Old Post 07-09-2002 16:02
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

2) You can use this from Peter Triggs notes:
quote:

INT GetEffectiveRegard(int, int) [regard adjusted for being at war]

INT GetTrust(int, int)

---------------
Azmel2 [Richard Myers]:

Both attitude [regard] and trust are on a scale from 0 to 1000.
The break down is as follows:

0 - 100, hot war (Goals with TargetOwner: HotEnemy)
101-300, cold war (Goals with TargetOwner: ColdEnemy)
301-700, neutral (Goals with TargetOwner: Neutral)
701-900, friend
900-1000, allied

The first three also say which goals will be pursued against foreign nations that you have a particular attitude toward. For example, you'll only do HotEnemy goals against foreigners you have a regard of 100 or less with. Going to war will also induce an automatic hotwar regard.
Trust is on the same scale. An AI will not sign certain treaties or agreements unless trust or regard is above a certain point. That can be redefined using your own diplomatic response logic.



Do you want me to e-mail some notes Peter Triggs gave me about dilomacy and the Richards Meyer (CTP2 AI Creator) interview?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:15
Post  Old Post 07-09-2002 16:55 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Full PM-box? Change here!

Actual for number one I prefer the modifying of the goals.txt concerning the retreat goal:

code:
GOAL_RETREAT { ExecuteIncrementally NeverSatisfied SquadClass:CanAttack SquadClass:CanDefend SquadClass:HasZoc SquadClass:CanCaptureCity TargetType:City TargetOwner:Self Execute ORDER_MOVE ThreatBonus 0 EnemyValueBonus 0 AlliedValueBonus 0 PowerBonus 0 DistanceToHomeBonus 0 DistanceToEnemyBonus 0 ChokePointBonus 0 UnexploredBonus 0 ObsoleteArmyBonus 0 TreaspassingArmyBonus 1200000 //MG from 10000 add to -300000 base priority to a priority of 900000 ThreatenType:None ThreatenBonus 0 // no force matching to retreat ForceMatch:Special }


That should make to retreat the AI troops, actual I think I saw this.

-Martin

mapfi is offline mapfi
Prince
Zurich, Switzerland
Jul 2002
time: 06:15
  Old Post 07-09-2002 18:09
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Inflate your Upload Space

seems like a good thing to have diggen this one out...
As for nr.1 I just read in another post by Dale, that the automatical retreat of naval units was also done. I never saw it in my gameplay though - is it not included in SAP or GM?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:15
Post  Old Post 07-09-2002 21:04 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by mapfi
As for nr.1 I just read in another post by Dale, that the automatical retreat of naval units was also done. I never saw it in my gameplay though - is it not included in SAP or GM?


AFAIK Dale removed it, because the AI tried to move through the territory again and again instead of moving around. As the withdraw script is part of DiploMod 3.6 it is in both mods. As Dale did it.

-Martin

mapfi is offline mapfi
Prince
Zurich, Switzerland
Jul 2002
time: 06:15
  Old Post 07-09-2002 21:15
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Inflate your Upload Space

So you're saying your solution in the goal.txt will work for both types of units?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:15
Post  Old Post 07-09-2002 21:52 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

If i understood this correctly:

TreaspassingArmyBonus - Flat bonus given if squad is trespassing

Then this bonus is added to the base priority in strategies.txt of this goal. So you have a base priority of -300000 in the strategies.txt. The original value is 10000 that would be just a total priority of -290000 that is still the lowest priority of all goals. The consequence the AI will never consider to execute this goal. Therefore I changed the bonus to 1200000 that will be a total priority of 900000 for the goal retreat if the army is trespassing. This priority is as high as the settle goal. It will effect all military units, units that can attack, can defend, can capture cities and have Zoc. So this will also effect water units maybe accept the transporter, but an empty transporter should be considered as civilian and as it can't pirate your trade routes, it should be ok.

-Martin

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:15
  Old Post 07-09-2002 21:54 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton or Terrorists Win

code:
SquadClass:CanAttack SquadClass:CanDefend SquadClass:HasZoc SquadClass:CanCaptureCity

It will currently work for units that can do all of the above. Ships can't capture, have no ZOCs, and most can't attack, so it won't work for them. Remove those lines and it might though

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:15
  Old Post 08-09-2002 05:54
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Remove this text

Only land units get zapped by the withdraw script. I did this because quite often I'd see an AI trespass/zap/trespass/zap/tresspass/etc for the rest of the game, just to get a naval unit through some straights that I controlled both sides of.

SMIFFGIG is offline SMIFFGIG
Prince
Great Britain
Jul 2002
time: 05:15
  Old Post 08-09-2002 06:02 Visit SMIFFGIG's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Browse Apolyton AD-FREE

Couldnt you make the Naval zapping more tolerent than the land one

What I mean is could you make it so that the AI had 4 or so turns before they got zapped out of your naval territory this way they would have more time to get through and explore or whatever weird stuff the AI might like to do?

mapfi is offline mapfi
Prince
Zurich, Switzerland
Jul 2002
time: 06:15
  Old Post 13-09-2002 18:51
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Full PM-box? Change here!

quote:
by Martin TreaspassingArmyBonus - Flat bonus given if squad is trespassing


Is the definition of tresspassing limited to having withdrawal agreement or also tresspassing borders when having a ceasefire or a peace treaty?
Because if the second one is the case Martin's solution would screw up the AI's ability to get onto you.

Smiffgig's:
I think that should be possible - would have to be tested out if it works in the desired way though.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:15.
Apolyton Time is 00:15.
    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.0364 seconds (90.38% PHP - 9.62% 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