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 > setting alliances
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
kormer is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 18-01-2001 10:12
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
setting alliances Support Apolyton or Terrorists Win

Does anyone know how to set an alliance at the beginning of a scenario? I know there has to be a way to set regard/pacts/alliances through slic. If someone could just show me how to do it with one nation I can probably handle the rest just fine.

heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 18-01-2001 11:35
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Help yourself to an AD-FREE life

You can check diplmacy.slc, it has some examples.

There is (i think)
SetRegard
LogRegardEvent and other
Get the excel spreadsheet from Locutus' website. Dont know where it is, see his profile

OmniGod is offline OmniGod
Prince
Philadelphia, PA, USA --> Really Canadian
Dec 1999
time: 00:14
Post  Old Post 18-01-2001 12:51 Visit OmniGod's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Suffering from ads?

Also check out the slic code from WW2 scenario. It has a section where it sets the level of hate and trust for the allies and germans.

Rich

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
Post  Old Post 18-01-2001 17:48 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Tired of ads?

Harlan uses a non-SLIC way of doing this that may be easier: temporary replace the regular diplomacy files with ones that make the AI really, really like and trust you when you give him gold. Give gold a couple of times and then ask him for any treaty you want. Once you did this, safe the scenario, exit and put the regular files back in place. SLIC can probably do it as well, but I wouldn't know exactly how. I do know that a lot of SLIC diplo changes need one turn to take effect so it's not ideal.

If really needed, this can be solved with another piece of SLIC code though, one that turns off the AIs, so you can move the turns forward as often as you want without having the AIs attacking or moving or screwing anything else up, I'll see if I can find this code and post it here, just in case it helps anyone. (BTW, once you moved the turns forward as often as you needed you can use the cheat menu to set the year back at the original starting year of the scenario). This code should also temporarily replace all existing SLIC code to prevent anything else gets screwed up.

kormer is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 18-01-2001 21:01
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Inflate your Upload Space

Thanks for the help. The idea about turning the AI will definetly help me out with a few things besides diplomacy. BTW, why was this moved to creation? Since its for creating a scenario shouldn't it be in the scenarios forum?

kormer is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 19-01-2001 00:32
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Here's what my scenario.slc file looks like as of right now. It doesn't appear to be working. It should make the canadians(civ 2) love the americans(civ1) Also I couldn't find any functions for creating embassies, alliances, or pacts.

// Scenario script for Dawn of New Millenium

HandleEvent(BeginTurn) 'DMStartGame_F' pre {

//set starting regard and Trust
LogRegardEvent(2,1,8000);
SetTrust(2,1,2000);

}

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
Post  Old Post 19-01-2001 01:57 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Avatar Enlargement: We've got the solution

No, the scenario's forum is for announcing scenarios and for discussion gameplay issues (how many civs? should I include this feature? tech tree discussion) and bugreports and the like, like the MedMod threads. The creation forum is for technical issues: how do I do this? is it possible to do that?

Onto the more important stuff. To turn off the AIs, there are two options. The first is this one, I tested it and it seems to work (doesn't crash, AI units don't move at all, haven't tested what happens with buildqueues and stuff), only it doesn't turn off the barbarians, so you might want to keep an eye on that. The second one will turn off barbarians as well, but I just wrote it so it's untested (don't see why it shouldn't work though). Note that 8s should be replaced by the number of civs in the scenario (so this example assumes you have 8 civs).

code:
HandleEvent(BeginTurn) 'TurnOffAIs' post { int_t i; for (i = 2; i <= 8; i = i + 1) { DetachRobot(i); } }


code:
HandleEvent(BeginTurn) 'TurnOffAIs' post { int_t i; for (i = 0; i <= 8; i = i + 1) { if (!IsHumanPlayer(i)) { DetachRobot(i); } } }


As far as the code you posted goes, I'm not surprised it doesn't work. In fact, when this code is executed, the game should crash to desktop and give some error messages (after which you can play on but without changing regard or trust). LogRegardEvent needs 6 arguments, not three, so this is never gonna work. This is from scenario.slc from the Alexander the Great scenario:

LogRegardEvent(4, 1, -9999, 0, ID_AG_REGARD_EVENT_NEG, 9999);

I'd suggest you try this for your example, not sure if it'll work in any other scenario but when you experiment a little with the arguments you can probably figure it out. The SetTrust thing is AFAIK never been used so I don't know how many arguments it needs (or which ones), you'll have to experiment around with that as well. I probably need this stuff myself as well in a while so eventually I'll try to figure it out myself, but I don't know yet when exactly 'in a while' is, so you may well not have the time to wait for that.

heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 19-01-2001 05:16
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Put an end to popups!

from diplomacy.slc

code:
LogRegardEvent(player, foreigner, regardDelta, regardEventType, explainstr)

There is also an optional vaue, after explainstr, which is length in turns.

kormer is offline kormer
Chieftain

Jan 2001
time: 05:14
Post  Old Post 19-01-2001 07:25
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

The trust function is working just fine. As for the regard...I tested the thing you said, and the error message said something like, "ID_AG_REGARD_EVENT_NEG is not defined. Well anyways I searched everywhere, for ID_AG_REGARD_EVENT_NEG and found its used many places to reduce regard, but nowhere does it initialize it. I know I can always do the old, stop, create diplomats method, but if activision can use slic in their scenarios then I should too.

heardie is offline heardie
Prince

Aug 1999
time: 15:14
Post  Old Post 19-01-2001 10:01
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

Anything with ID as a prefix is a string. To set iun you scenario folder go scenxxx/english/gamedata. Then create a scen_str. Then if your id was ID_NOREASON you would go

code:
NO_REASON "There is no reaon why you are at war"

  < 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.0424 seconds (87.64% PHP - 12.36% 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