Thread Tools
Old September 23, 2003, 12:14   #1
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: 11:10
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
How can I make two civs signing a treaty?
I tried to make two civs to sign a treaty, unfortunatly I already tried to use ConsiderNewProposal, SetNewProposal, Event:Accept, Event:NewProposal, ConsiderResponse, SetResponse, EventesireMotivation, but so far no success. When I use the HasAgreement function there is no agrement even in a post Accept event handler.

I need this feature, because I am not content with the embassy check routines of Diplomod 3.6, first there are buggy and second they don't survive a /reloadslic.

I hope it is possible to use disabled proposals. The advantage of this way is that if two civs have such an embassy treaty, no arrays are necessary anymore to store this information, and it wouldn't be deleted by a /reloadslic.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old September 24, 2003, 03:01   #2
Gilgamensch
Call to Power II Democracy GameCall to Power II MultiplayerCTP2 Source Code Project
King
 
Local Time: 10:10
Local Date: November 2, 2010
Join Date: Jun 2002
Location: France
Posts: 1,986
Martin,

you might know better than me, but aren't treaties getting active the next turn?
Gilgamensch is offline  
Old September 24, 2003, 11:17   #3
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: 11:10
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Quote:
Originally posted by Gilgamensch
Martin,

you might know better than me, but aren't treaties getting active the next turn?
Actually I doubt that treaties become active the next turn, for instance if I sign a ceasefire or a peace treaty I get the icons in the diplo-manager in the same turn. Well I have to wait a little bit until the graphics thing is updated but than it is there in the same turn.

Unfortunatly even if they would become active the next turn, the HasAgreement function had reported it. I used a message box that told me everyturn the status of the particular treaty between two civs. And only one of these treaties was indicated and I signed it on my own.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old September 25, 2003, 03:03   #4
Gilgamensch
Call to Power II Democracy GameCall to Power II MultiplayerCTP2 Source Code Project
King
 
Local Time: 10:10
Local Date: November 2, 2010
Join Date: Jun 2002
Location: France
Posts: 1,986
Yes, you are right, tried it again yesterday. It is only a timedifference between 'signing' and updating.

But I was trying to recall yesterday any game were the AI had signed anything.......I can't remember.........

I think they did in the default game, but that was it. I might not be right here, but that's what I have in mind..........
Gilgamensch is offline  
Old September 26, 2003, 08:50   #5
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 09:10
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
You want to get one AI civ to propose a treaty to another one and then have the recipient accept it? You have to generate a NewProposal event within a NextDiplomaticState event. Here's the basic idea:

http://apolyton.net/forums/showthrea...499#post529499
Peter Triggs is offline  
Old September 26, 2003, 16:53   #6
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: 11:10
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
OK as far as I understood it, I can't do it neither within the ContactMade nor within the EstablishEmbassy nor within any other event except the NextDiplomaticState. That means I need temporay globals, but better than permerment globals. What I don't understand is purpose of the LogRegardEvent function.

-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 05:10.


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