Announcement

Collapse
No announcement yet.

Boolean Triggers

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

  • Boolean Triggers

    Does anyone know how to create Boolean triggers using events.txt? For example, create a new unit in year 20 only if Rome has already taken Carthage?

  • #2
    That can only be achieved in Test of Time...

    Let's see, I think this would do it (I'm not an expert in ToT events, though):

    Code:
    @IF
    CityTaken
    continuous
    city=Carthage
    attacker=Romans
    defender=AnyBody
    @AND
    Turn
    turn=20
    @THEN
    CreateUnit
    ...
    This would even be triggered if Carthage has been liberated again, though. To also take care of that, you'd have to use flags. Set a Roman flag when they capture Carthage and reset it when they lose Carthage.
    Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

    Comment


    • #3
      For non-ToT, create the unit only in Carthage.
      El Aurens v2 Beta!

      Comment


      • #4
        Thanks. I have MGE, so I guess this wouldn't work for me. What's a flag ? - is that also ToT only?

        For some reason, I haven't been able to create units (thru events) in city squares. Probably my mistake - I'll try again.

        Comment


        • #5
          Originally posted by Peaster
          What's a flag ? - is that also ToT only?
          Yes, it's ToT only.

          Comment


          • #6
            Originally posted by Peaster
            Thanks. I have MGE, so I guess this wouldn't work for me. What's a flag ? - is that also ToT only?

            For some reason, I haven't been able to create units (thru events) in city squares. Probably my mistake - I'll try again.
            You can't use a city name as a location for a unit arrival. Use the map coordinates of the city instead.
            Tecumseh's Village, Home of Fine Civilization Scenarios

            www.tecumseh.150m.com

            Comment


            • #7
              Originally posted by techumseh


              You can't use a city name as a location for a unit arrival. Use the map coordinates of the city instead.
              And don't forget to set the ownerciv to the civ that will own the city
              "Peace cannot be kept by force.
              It can only be achieved by understanding"

              Comment


              • #8
                I must have been doing something crazy the first few times with the cities, like getting the unit-owner wrong, because now I can create units there just fine. Thanks.

                BTW - I think there is a way to get the Rome/Carthage effect in MGE, but it's pretty complicated. It uses several events in combination. I'm still play-testing the idea in my first scenario.

                Comment


                • #9
                  You could...sorta..do it in regular Civ2 by giving a tech to the conqueror on turn twenty, another tech to it when it takes carthage, and make a tech with those two techs as prereqs and a HUGE AI value. Then when the AI-controlled civ inevitably researches the tech, have a justonce event give him a unit. It's awkward and stupid, but it's the only way I can think of at the moment.
                  1011 1100
                  Pyrebound--a free online serial fantasy novel

                  Comment


                  • #10
                    "It's awkward and stupid, but it's the only way I can think of at the moment. "

                    My idea has problems, too. It uses units instead of tech. For example, create a weak Spanish fort-unit on a distant island, and create a French tank nearby. Then, hope that the fort will quickly be flattened.

                    It seems to work well IF the French and Spanish are AI's, and stay at war, and no other units interfere. You can make complex variations by including terrain-change triggers, which connect small isalnds. Or by making more forts etc.

                    BTW, how do you make those boxed-in quotes? I click on "quote" and it seems to want me to enter a string of text (do you have to re-type the whole quotation??)

                    Comment


                    • #11
                      Originally posted by Peaster
                      My idea has problems, too. It uses units instead of tech. For example, create a weak Spanish fort-unit on a distant island, and create a French tank nearby. Then, hope that the fort will quickly be flattened.
                      You should have a look at Favoured Flight's scenarios (especially The Return of the King). He uses something like that to create delayed events.

                      BTW, how do you make those boxed-in quotes? I click on "quote" and it seems to want me to enter a string of text (do you have to re-type the whole quotation??)
                      Instead of clicking the "Post reply" button, click on the small "reply with quote" link at the top-right of the post you want to quote.
                      Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                      Comment


                      • #12
                        Originally posted by Mercator


                        You should have a look at Favoured Flight's scenarios (especially The Return of the King). He uses something like that to create delayed events.
                        Thanks again ! The javascript on his website was acting up, but the ROTK scenario is also at CivFanatics. I am looking forward to playing it and studying it.

                        It sounds like ToT has a better events system than MGE, so I'm tempted to try it. But I've already put some work into a MGE scenario. Hmmm.

                        Comment


                        • #13
                          You can convert it to Test of Time, using Angelo Scotto's CivConverter program. It's available on Cradle of Civ, and Mercator's site too, I think.
                          Tecumseh's Village, Home of Fine Civilization Scenarios

                          www.tecumseh.150m.com

                          Comment


                          • #14
                            I'm afraid it isn't available at my site (yet).

                            But then, Peaster said he has MGE, so he won't be needing it in the first place.
                            Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                            Comment


                            • #15
                              I must have something wrong. Could someone check my assumptions here?

                              1) Scenarios written for ToT won't run on MGE (and vice versa?)
                              2) But MGE ones can be converted to ToT ones
                              3) I could type an events.txt file like Mercator's, but MGE wouldn't like it
                              4) There is probably a bigger audience for MGE than ToT (?)

                              BTW: The ROTK graphics really look polished. I haven't figured out the design yet.

                              Comment

                              Working...
                              X