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 > Civilization II > Scenario League / Civ2-Creation > Question about Events and New Utilities
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD
CivGroups
Scenario League / Civ2-Creation (66): Not a Member - Join

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 22-04-2004 18:29 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Question about Events and New Utilities Increase Your PM Length

This question is directed mostly a Mercator (whatever variation of that name he's using now) or anyone familiar with his work, but any other answer would be helpful. I want to set up a situation whereby a trigger occurs, and then, on that turn, and every n turns thereafter, something happens. I've heard Merc has a new utility that can manage that (unless I'm mistaken) but can someone tell me how to do that in a workable way, please?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 22-04-2004 19:02 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization 2

That would be me, then?

You must be talking about CivSwap here, but I'm afraid you're going to have to be a little more specific.

Just to be sure, CivSwap basically only automates file swapping. So if you're talking about a "normal" event that doesn't involve any file swapping, CivSwap isn't gonna be of much help.

CivSwap can't yet do anything on regular intervals (except by listing all turns involved), nor can it start on a variable (triggered by events) rather than fixed turn.

Cyrion is offline Cyrion
King
Caught somewhere in time
Jan 2002
time: 06:17
  Old Post 22-04-2004 20:16
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Re: Question about Events and New Utilities Remove this text

quote:
Originally posted by Patine
This question is directed mostly a Mercator (whatever variation of that name he's using now) or anyone familiar with his work, but any other answer would be helpful. I want to set up a situation whereby a trigger occurs, and then, on that turn, and every n turns thereafter, something happens. I've heard Merc has a new utility that can manage that (unless I'm mistaken) but can someone tell me how to do that in a workable way, please?


No, I'm not Mercator DL!

Should your event be a unit creation, here is what you could do (if the desired spot isn't a city!):
1) write an event creating a unit in that spot every n turns
2) place a "impassable" (defense of 90, move 0, NONE) on that spot from the start
3) when the trigger occurs, use a "change terrain" event on the desired square to wipe the impassable" unit: from then on, the event described under 1 will work just fine (as long as the spot isn't occupied by a unit belonging to another civ, of course!)

If your event is NOT a unit creation, please specify, and maybe we'll find a solution around the problem!

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:17
  Old Post 22-04-2004 20:49
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton

quote:
Originally posted by Patine
I want to set up a situation whereby a trigger occurs, and then, on that turn, and every n turns thereafter, something happens.


Do you mean "on that turn and for n turns thereafter" or "on that turn and every n'th turn thereafter"?

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 22-04-2004 20:49 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Remove this text

@Mercatore Uno

Could I use CivSwap to swap between two Event.txt on the triggered action (which is a city being captured) with the new one being the same but adding the units appearing at the stated intervals?

@Cyrion

I think I know what you're saying, but such units would block up much of the military action that leads to the city being captured in the first place. Is there some other way you know of?

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 22-04-2004 20:50 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Got spare money?

@Agricola

The latter. Can you help me?

AGRICOLA is offline AGRICOLA
Prince
Canadian bush & Florida
Feb 2003
time: 00:17
  Old Post 22-04-2004 22:09
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Inflate your Upload Space

From what I understand, you don't know beforehand the number of the turn during which the trigger will occur.

If you did know the number (e.g. 15), you could write an EVENTS file where the desired event would take place on turns 15+n, 15+2n etc , and use the standard procedure of having the player go through the procedure to replace the original at the end of turn 15

However, with no dynamic programming available in EVENTS, all that I can think of right now is to make a series of EVENTS files, where each file would assume that the trigger event occurs on a different turn. There would have to be enough of these files to cover all eventualities.

When the trigger event occurs, the original EVENTS would display a message to finish the turn, save the game under a particular name, exit and open a file to select the present month & year. The process would be the same as is currently used to switch EVENTS (and other files), except that you would probably have a much longer list of options to choose from. There is no question that this is a terrible, brute force approach.

I’m really talking off the top of my head here because 95% of my programming experience is with FORTRAN, but I can’t help wondering if the programming language available in Windows (I don’t even know what it’s called) can’t be used to accept turn# as input, use it to modify an existing EVENTS file, and then carry out the exchange of files. How difficult would it be to modify CivSwap?

Last edited by AGRICOLA on 22-04-2004 at 22:14

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 22-04-2004 22:26 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization 2

CivSwap can only swap on pre-specified turns. It can't swap on a turn you don't know beforehand... Unless you already know for a fact on which turn that city will be captured. So I'm afraid not.

But ToT could do this.

Elok is offline Elok
Prince
Land of Ramen Dragons
Mar 2003
time: 00:17
  Old Post 22-04-2004 22:46
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

ToT can lick my nuts. Hmph.

Anyway, you might reconcile Cyrion's method with your needs this way:

Events.txt is set to create a unit for Tribe B every, say, three turns at a certain spot. That spot is occupied by an invicible unit of Tribe A's supported from the city to be taken, which is right next to it. This unit, named Lord of Town X or whatever, is an immobile diplomat/fanatic with absurd defense, so there's no reason to disband it and it can't be moved or rehomed in any way. He's sort of the town's watchman, and his ZOC blocks enemy approach from a certain point without bothering the citizens of Tribe A. When the city is taken, of course, he vanishes, and henceforth every three turns a thingamabobber is created at that spot. If you wanted to guarantee it, you could create a superunit there for Tribe B when the city is taken.

Alternately, just eventgive a tech to the attacker when it takes the city, and make the desired events occur with the possession of that tech, WITHOUT the justonce trigger. It'll have to be *every* turn, of course, but such is life.

Elok is offline Elok
Prince
Land of Ramen Dragons
Mar 2003
time: 00:17
  Old Post 22-04-2004 22:46
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

EDIT: DP, whoops!

Last edited by Elok on 23-04-2004 at 01:42

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 22-04-2004 22:56 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Help yourself to an AD-FREE life

I should really reload a thread before I post. That was a bit of a late "crosspost" there (edit: damnit! again)... Modifying CivSwap would be quite possible, I'm not sure how long it would take, but it's not gonna happen anytime soon.

But, now you mention it, something like what you said can be done with batch files + CivSwap... That is, if there's a relatively small range of turns (or actually, that doesn't matter, except the civswap ini file will get rather big)...

Let me see... Suppose the city will be captured in turn 2, 3 or 4.


  • In your original events.txt you will have the CityTaken event. This will trigger a text event saying that the user should load a new savegame (as created by CivSwap).
  • You let CivSwap swap events files on the very first possible turn (2 in this case).
  • You also let CivSwap "delevent" a copy of the autosave on each of the possible turns (2, 3 and 4).
    Edit: it shouldn't edit the autosave itself! But rather a copy of the autosave! (Otherwise people could accidentally get the new events, if they're used to loading autosaves)
  • Because the player only reloads the game after the turn the city is actually captured, the change in events will only take effect in that turn.


I think that's enough, actually. The new events file will add a TurnInterval event creating the units, and you're set.

This will of course mean CivSwap will get lots of unnecessary action... And cheating players could reload that new savegame even when that city wasn't captured... or not load any new savegame at all, if the new event creates enemy units, of course.

Last edited by Mercator on 22-04-2004 at 23:02

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 22-04-2004 23:38 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Inflate your Upload Space

I don't fully understand how that works, Mercatore Uno, but perhaps reading the readme and actually trying CivSwap will make it clear. Where can I get it? Can you please give me a link?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:17
  Old Post 23-04-2004 00:35 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Inflate your Upload Space

http://www.civgaming.net/mercator/mapedit

Both readme and utility are available online. The former in the Help section, the latter, obviously among the downloads.

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 23-04-2004 00:57 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Thanks a lot, Mercatore Uno

Patine is offline Patine
Prince
Edmonton, Canada
Mar 2002
time: 22:17
  Old Post 23-04-2004 00:58 Visit Patine's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Got spare money?

Oh, and thanks everyone else on this thread

Cyrion is offline Cyrion
King
Caught somewhere in time
Jan 2002
time: 06:17
  Old Post 23-04-2004 02:40
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Increase Your PM Length

You're welcome!

I can't find any solution which wouldn't block the square right now, sorry... So if you really need this square to be accessible before the event (and it's only 1 square!), then my solution of course wouldn't work...

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:17.
Apolyton Time is 00:17.
    top of page
Rate This Thread:
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.0460 seconds (91.01% PHP - 8.99% MySQL) with 36 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