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 > Civ2-Test of Time > I'm having trouble with the events
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

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
Archangel
Guest

Not Yet
time:
Post  Old Post 08-10-1999 09:48
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
I'm having trouble with the events Support Apolyton, buy Civilization III: Complete

I can't figure it out. I'm having trouble with my citytaken triggered events. The only one that works is Antwerpen. Heres what my city taken events look like.

quote:
@IF
CityTaken
city=Liége
attacker=Germans
defender=Allies
@THEN
Text
^German fallschirmjäger are trooped into Belgium and capture the key
^bridges intact. A succesful drop is made on the heaviest Belgian fort, ^Eben Emael, leaving the frontier open for the Panzer divisions.
endtext
@AND
justonce
@ENDIF

@IF
CityTaken
city=Antwerpen
attacker=Anybody
defender=Anybody
@THEN
Text
^The Germans take Antwerp, cutting off Allied forces still in Belgium. endtext
@AND
justonce
@ENDIF

@IF
CityTaken
city=Rotterdam
attacker=Germans
defender=Allies
@THEN
Text
^After withstanding the German onslaught for several days, Rotterdam
^finally falls. The city is even bombed to rubble while talks of peace
^are in progress.
endtext
@AND
justonce
@ENDIF

@IF
CityTaken
city=Dunkerque
attacker=Anybody
defender=Anybody
@THEN
Text
^The British Expeditionary Force is saved from complete annihilation
^by the mere mistake Hitler made of ordering back his tanks. The British
^forces are carried across the channel by a fleet consisting of every
^ship available to them. The French army is routed and Paris lies open.
endtext
CreateUnit
owner=Allies
unit=British Division
Count=10
veteran=yes
homecity=None
locations
18,46
endlocations
PlayWaveFile
Fall.wav
@AND
justonce
@ENDIF

@IF
CityTaken
city=Strasbourg
attacker=Anybody
defender=Anybody
@THEN
TEXT
^The French provinces of Alsace and Lorraine are annexed into Greater
^Germany.
endtext
@AND
justonce
@ENDIF

@IF
CityTaken
city=Paris
attacker=Anybody
defender=Allies
@THEN
TEXT
^The German blitz has reached Paris in only six weeks since the
operation's start. French forces are in a full retreat and a new
French cabinet is formed under Marshal Pétain. An armistice is signed
in which Germany gains occupational rights to two-thirds of France.
endtext
PlayAVIFile
GWin.avi
PlayWaveFile
defeat.wav
@AND
justonce
@ENDIF


I've experimented around with changing attacker and defender into "anybodies" but I've had no luck with that. The Report.txt couldn't find anything wrong with events either...

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:14
Smile  Old Post 08-10-1999 14:09 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Remove this text

It's the "@AND" in your actions field. You don't need it and I don't think you can use @AND in the action field. You Can run your actions together... That is,

@THEN
TEXT
^Pikachu unleashes his thunderbolt attack
ENDTEXT
CREATEUNIT
owner=Ash
unit=Thunder Bolt
Count=2
veteran=False
homecity=None
locations
1,2,1
endlocations
JUSTONCE
@ENDIF

See how I ran 3 actions together? (This is an example... I'm not really making a scenario that uses this language).

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:14
Red face  Old Post 08-10-1999 19:51 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Lose 30 kilos (of popups)

The @AND is only for use to connect conditions together. For example:

@IF ;If Trade is not good, give a warning
TURN
Turn=200
@AND
CheckFlag
Who=Muetarians
Mask=0xFC000000
Threshold=2
State=On
@THEN
TEXT
A Messenger from Emperor Herrott the Imperial Overlord of Muetar, Protector of Minaria, Holy Knight of Pennol, etc, etc.
Commands the Matriarchs of Nithmere to put aside their petty squabbling and choose a new Queen of Nithmere.
Your constant warfare has caused disruption to the Empire's southern trade routes!
If you do not put an end to this, then the emperor will!
ENDTEXT
@ENDIF

Civfan is offline Civfan
Prince
Toronto, Canada
Sep 1999
time: 05:14
Question  Old Post 09-10-1999 09:25 Visit Civfan's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Hey there William. I'm just wondering about that Event you wrote there. What will it actually do besides post that message on Turn 200? thanks.....Civfan

Michael Daumen is offline Michael Daumen
Prince
Research Triangle
Jan 1970
time: 00:14
Post  Old Post 09-10-1999 02:54 Visit Michael Daumen's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

I also thought the JUSTONCE modifier went in the events section and not the trigger section of an event.

Archangel
Guest

Not Yet
time:
Post  Old Post 09-10-1999 04:37
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Tired of ads?

Its strange. Darth, I see your point for @And, but the Antwerpen event still worked with it... I got it fixed though. I saved as a scenario again and this time when I loaded it the report.txt found a bug. It was with the "endtext" on the Antwerpen event. I fixed it and now the events work. But another problem has taken its place. When Paris is taken, the game crashes. So far its just Paris. I've tried taking out the PlayAVI and Wav actions, but it still crashes. But I haven't fully investigated this problem.

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:14
Smile  Old Post 09-10-1999 07:18 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Inflate your Upload Space

Try omitting the hyphen in the two-thirds in the text box for the city capture.

I've found that the game hates "&" and "-" in the coding for units (from original Civ-scenario making, maybe they fixed it). Actually, anything except ?, !, and $ is probably inviting havoc.

Its usually good to stay with alphanumeric instead of symbols in names and text.

See if that helps

Archangel
Guest

Not Yet
time:
Post  Old Post 10-10-1999 00:55
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Put an end to popups!

Omitting the "-" had no effect. Here is the error message I receive.

quote:
CIV2 caused an invalid page fault in
module AVIFIL32.DLL at 0167:7f672edf.
Registers:
EAX=00000000 CS=0167 EIP=7f672edf EFLGS=00210246
EBX=000000f0 SS=016f ESP=008edb9c EBP=008edbb8
ECX=01437c90 DS=016f ESI=000089d0 FS=2a67
EDX=014367e4 ES=016f EDI=008ee960 GS=0000
Bytes at CS:EIP:
8b 00 ff 50 20 5d c2 1c 00 55 8b ec ff 74 24 24
Stack dump:
00000000 00000000 00000001 00000000 00000000 008edc38 00000000 008edc40 005a0d7e 00000000 00000000 00000001 00000000 00000000 008edc38 00000000


I saw the error in the avifil32.dll. I tried the events without playing the avi, but it still crashes. Does this mean that my dll is corruptted?

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:14
Red face  Old Post 10-10-1999 08:56 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton or Terrorists Win

Civfan ...

The event I posted above is only a warning to the player that they had better make the Emipre of Muetar happier (the how is to complex to go into in this post) or they will delare war and launch an offensive in 25 turns.

The event that follows the one above is ...

@IF ;Turn on the Warflag!
TURN
Turn=225
@AND
CheckFlag
Who=Muetarians
Mask=0xFC000000
Threshold=3
State=On
@THEN
FLAG
Continuous
Who=Muetarians
State=off
FLAG=26
@ENDIF

The War Flag (FLAG=26) triggers several pages of events that declare war (Make Aggression), mobilize Muetar's armies (Create Units), and march them off to capture the capitals of the four antagonists' nations (MoveTo).

Does that clear it up or just leave you with more questions?

DarthVeda is offline DarthVeda
Emperor
My avatar! My precious!
Jan 1970
time: 00:14
Question  Old Post 10-10-1999 19:02 Visit DarthVeda's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Um, I have only done some work with ToT, but I was under the impression you could only have 16 flags.

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:14
Talking  Old Post 10-10-1999 20:44 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

DarthVeda ...

Each civ (including the barbarians) get 32 flags each. So, thats eight groups of 32 flags each.

It's only 32 bytes total but it opens a world of possibilities ... [insert Sleague tip here].

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:14
Exclamation  Old Post 11-10-1999 14:36 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Got spare money?

GPFs can be caused by corrupt .dlls (amongst other things). Try re-installing or copying from a known good area.

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:14
Post  Old Post 12-10-1999 02:58 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Got spare money?

I think an event thread is in order.
[This message has been edited by William Keenan (edited October 11, 1999).]

Civfan is offline Civfan
Prince
Toronto, Canada
Sep 1999
time: 05:14
Post  Old Post 17-10-1999 10:17 Visit Civfan's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton or Terrorists Win

Thanks William for answering. Questions, Questions, Questions, tons of questions but only one for now. Just wondering in your event file with your first line, @IF;Turn on the Warflag!..... Will that actually work. I mean on the Warflag. Shouldn't that be an action statement underneath Turn=225.....
Thanks...... Civfan

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:14
  Old Post 17-10-1999 10:29 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

The ";Turn the War Flag on" comment discribes the overall function of the @IF statement.

Everything after the semi-colon is a comment.

  < 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:
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.0350 seconds (90.90% PHP - 9.10% MySQL) with 30 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