I've finally got around to testing my actual beta of 'Empire of the Rising Sun,' and, lo and behold, I already have an event problem in the first events.txt (which covers Dec '41 to Dec '42). I took AGRICOLA's advice and decided not to make the tech that gives Chindits (which is given via event to the British/Indians) in the Guerilla Warfare slot, and thus avoid them cropping up each and every time a Brit city is captured. Instead, I set events so that when Kuala Lumpur is captured by the Japanese (the event that also gives the tech to the British), there should be generated a number of Chindits in the area. But they're not there! And the Japanese (or anyone else for that matter) don't occupy those spaces. What could be amiss?
Announcement
Collapse
No announcement yet.
Event Problem
Collapse
X
-
-
Obviously, posting the text file in zip form wasn't too popular. Sorry. Here's the straight text of the events I'm having trouble with.
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indians
@THEN
TEXT
^The battle for Malaya goes better than expected for the Imperial Army. Malay troops
^prove to be completely ineffective. However, the Japanese intelligence indicates that
^a Chindit guerrilla movement and similar native militias are being formed to resist
^further Japanese expansion into British territory. Many consider England's decadent
^Raj preferable to Japan's harsh militarist rule.
ENDTEXT
JUSTONCE
GIVETECHNOLOGY
technology=90
receiver=British/Indians
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
45,165
endlocations
JUSTONCE
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
45,165
endlocations
JUSTONCE
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
43,165
endlocations
JUSTONCE
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
43,165
endlocations
JUSTONCE
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
45,167
endlocations
JUSTONCE
@ENDIF
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian
unit=Chindits
veteran=yes
homecity=none
locations
45,163
endlocations
JUSTONCE
@ENDIF
If anyone needs anymore information to help me, just ask.
Comment
-
Patine:
Try switching the places for "unit" and "owner"
From this:
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
owner=British/Indian <====
unit=Chindits <====
veteran=yes
homecity=none
locations
45,167
endlocations
JUSTONCE
@ENDIF
To this:
@IF
CITYTAKEN
city=Kuala Lumpur
attacker=Japanese
defender=British/Indian
@THEN
CREATEUNIT
unit=Chindits <====
owner=British/Indian <====
veteran=yes
homecity=none
locations
45,167
endlocations
JUSTONCE
@ENDIF
Comment
-
I also spot another problem.
The "s" is missing for the defenders in some places:
In some places you call the defender "British/Indian" and in others you call it "British/Indians".
Check in "RULES.TXT" for the actual name you use and use it consistently in Events.
Comment
-
In TOT can't you use Count=n to have one event do what you are using n separate events for?
The following examples are taken from techumseh's Market Garden scenario. He did a brilliant job with events to create an amazingly complex scen.
@THEN
CREATEUNIT
unit=Airborne(1)
Count=6
owner=Allies
veteran=yes
homecity=none
randomize
locations
16,16
14,14
14,16
13,17
endlocations
JUSTONCE
@ENDIF
@THEN
JUSTONCE
CREATEUNIT
unit=Airborne(1)
Count=6
owner=Allies
veteran=yes
homecity=none
randomize
locations
13,17
13,17
;13,21
endlocations
@ENDIFExcerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
Sorry, but I'm just a dummy who likes to look at EVENTS after playing a scen, just to see how and why I royally screwed up.
I was so full of admiration for techumseh's nasty tricks that I haven't forgotten some of the more interesting techniques that he used. I have never seen either count or randomize in a MGE EVENTS file (even Red Front) but please don't take that as gospel.
I'm sure that one of the ace designers can give you a definitive answer.
Excerpts from the Manual of the Civilization Fanatic :
Money can buy happiness, just raise the luxury rate to 50%.
Money is not the root of all evil, it is the root of great empires.
Comment
-
That's OK
Thanks for the answer.
I also like to look through event files.
It is amazing the number and types of events that can be created.
Civ2 truly has the most veratile event system I have seen.
Pity the event size in notepad is so limited (for MGE).
Comment
-
BTW chindits were not guerillas, they were commandoes
and they never operated in Malaysia
nor did they not exist until much later after the fall of KL.
Maybe you can drop the word 'chindit' to make it more accurate
Comment
Comment