Announcement

Collapse
No announcement yet.

Event Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Event Problem

    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?

  • #2
    Post the event.
    Lost in America.
    "a freaking mastermind." --Stefu
    "or a very good liar." --Stefu
    "Jesus" avatars created by Mercator and Laszlo.

    Comment


    • #3
      Here's the whole event set.
      Attached Files

      Comment


      • #4
        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


        • #5
          Hmmm, well, let's go down the list:

          Are the Civ names correct?

          Are the locations actual map coordinates? (sometimes a mix up in the numbers can create units in a "phantom zone")

          Comment


          • #6
            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


            • #7
              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


              • #8
                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
                @ENDIF
                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


                • #9
                  AGRICOLA:

                  Can a person use the "randomize locations" in MGE events as well?

                  Comment


                  • #10
                    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


                    • #11
                      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


                      • #12
                        Thanks for the help, people! I'll give these things a try and get back to you.

                        Comment


                        • #13
                          It seems Leonidas had the answer. I pluralized the British/Indians in all cases and the Chindits appeared right where they should have. Thanks!

                          Comment


                          • #14
                            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
                            .
                            This is a link to...The Civilization II Scenario League and this is a link to...My Food Blog

                            Comment

                            Working...
                            X