Announcement

Collapse
No announcement yet.

American War of Independence - Creation Thread

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

  • #91
    Great new British units. Thanks very much.
    Are you also working on an update of the Americans?

    I´m working on the events and hope, that I can post them until the next weekend.
    American War of Independence
    A Divided Nation - US Civilwar

    Comment


    • #92
      Yes, I'm doing the Americans. Good news about the events.
      http://sleague.apolyton.net/index.ph...ory:Civ2_Units

      Comment


      • #93
        I´ve a little problem with the flags. Maybe someone could help me :

        I would like to give the Americans a special tech. They should only get this tech from Dec 1777 until June 1778. This works very good. Now my problem:

        When the British conquered the city before Dec 1777, the Americans shouldn´t get the tech. Only if they liberates the city until June 1778. And this doesn´t work. Unfortunately the Americans get the tech when the British conquered the city before Dec 77. What do I wrong?

        Here are the flag:

        @IF
        Checkflag
        Who=Americans
        Mask=0b00000000000000000000000000000100
        Count=1
        State=On
        @AND
        TURN
        Turn=33
        @THEN
        JUSTONCE
        TEXT
        ...
        ENDTEXT
        @THEN
        CREATEUNIT
        owner=Americans
        unit=Wilhelm von Steuben
        veteran=yes
        homecity=None
        locations
        63,47
        endlocations
        GiveTechnology
        receiver=Americans
        technology=80
        @ENDIF

        This works very good.

        @IF
        CITYTAKEN
        city=Valley Forge
        attacker=British Empire
        defender=Americans
        @THEN
        Flag
        Continuous
        who=Americans
        state=Off
        flag=2
        @ENDIF

        @IF
        CITYTAKEN
        city=Valley Forge
        attacker=Americans
        defender=British Empire
        @THEN
        Flag
        Continuous
        who=Americans
        state=On
        flag=2
        @ENDIF

        The flags, when British troops conquered Valley Forges.

        @IF
        TURN
        Turn=1
        @THEN
        Checkflag
        Flag
        Continuous
        Who=Americans
        State=On
        Flag=2
        @ENDIF

        I´ve to use this command, otherwise the flag doesen´t work.

        @IF
        TURN
        Turn=39
        @THEN
        Checkflag
        Flag
        Who=Americans
        State=On
        Flag=2
        @ENDIF

        On turn 39, the flag should be deactivated.

        Please help me.

        I wish you all Frohe Weihnachten, like we say in Germany
        American War of Independence
        A Divided Nation - US Civilwar

        Comment


        • #94
          Originally posted by civ2units
          I would like to give the Americans a special tech. They should only get this tech from Dec 1777 until June 1778. This works very good.
          Your first event will only gift the tech and unit on turn 33, not turns 33-39.

          Originally posted by civ2units
          When the British conquered the city before Dec 1777, the Americans shouldn´t get the tech. Only if they liberates the city until June 1778. And this doesn´t work. Unfortunately the Americans get the tech when the British conquered the city before Dec 77. What do I wrong?
          I don't see a problem with the two CityTaken events.

          Just a few things:
          1. CheckFlag is a trigger not an action.
          2. You don't need to use a mask for a CheckFlag trigger if you are only checking one flag.
          3. You don't need the continuous modifier when you turn flags off. You only need it to keep flags on.
          4. The order of events within the Events file is important.

          This is how I'd do it:
          Code:
          ;Sets the Valley Forge flag, ie, the Americans have the city at the start of the game.
          @IF
          Turn
          turn=1
          @THEN
          Flag
          continuous
          who=Americans
          state=on
          flag=2
          @ENDIF
          
          ;Sets the start of the gift tech/unit period.
          @IF
          Turn
          turn=33
          @THEN
          Flag
          continuous
          who=Americans
          state=on
          flag=3
          @ENDIF
          
          ;Ends the gift tech/unit period.
          @IF
          Turn
          turn=40
          @THEN
          Flag
          who=Americans
          state=off
          flag=3
          @ENDIF
          
          ;Turns off the Valley Forge flag if the city is captured by the British. 
          @IF
          CityTaken
          city=Valley Forge
          attacker=British Empire
          defender=Americans
          @THEN
          Flag
          who=Americans
          state=off
          flag=2
          @ENDIF
          
          ;Turns on the Valley Forge flag if the city is retaken by the Americans.
          @IF
          CityTaken
          city=Valley Forge
          attacker=Americans
          defender=British Empire
          @THEN
          Flag
          continuous
          who=Americans
          state=on
          flag=2
          @ENDIF
          
          ;If the Americans hold Valley Forge at any time during turns 33-39, then they receive their tech and unit.
          @IF
          CheckFlag
          who=Americans
          mask=0b00000000000000000000000000001100
          count=2
          state=on
          @THEN
          JustOnce
          CreateUnit
          owner=Americans
          unit=Wilhelm von Steuben
          veteran=yes
          homecity=None
          locations
          63,47
          endlocations
          GiveTechnology
          receiver=Americans
          technology=80
          Text
          ...
          EndText
          @ENDIF
          Catfish's Cave - Resources for Civ2: Test of Time | Test of Time FAQ | War of the Ring scenario

          Comment


          • #95
            I´ve copied your settings in my events file but it doesn´t work. The British conquered Valley Forges before Dec 1777 and the message still plop up. Thanks for the help, I will use it. It's a long way to conquer Valley Forges if you play with the Brits.
            American War of Independence
            A Divided Nation - US Civilwar

            Comment


            • #96
              I just tested it with the version you uploaded to the Scenario League website and it worked. I tossed out all of your other events, though. I guess you're going to have to post your latest files: SAV/SCN, rules and events.
              Catfish's Cave - Resources for Civ2: Test of Time | Test of Time FAQ | War of the Ring scenario

              Comment


              • #97
                I've uploaded the latest files
                New AWI files
                the events are not complete until now but the Valley Forges and French intervention flag are included. I would be happy if you could say me wat I´m doing wrong.
                American War of Independence
                A Divided Nation - US Civilwar

                Comment


                • #98
                  Originally posted by civ2units
                  The British conquered Valley Forges before Dec 1777 and the message still plop up.
                  *cough* It might have something to do with you changing the city name from Valley Forge to Valley Forges in the latest version.

                  You have other issues with shared flags (numbers 0-2). Be careful whenever you turn flags off. See this post by Mercator. Each flag from 0 to 31 possesses a single Continuous modifier bit, so if you turn off flag number 2 for the American tribe, ie, remove the Continuous modifier, it actually turns off flag number 2 for everybody. You've got plenty of spare flags, so you should be able to shuffle things around a bit.

                  The events file should have an @ENDEVENTS line.
                  Catfish's Cave - Resources for Civ2: Test of Time | Test of Time FAQ | War of the Ring scenario

                  Comment


                  • #99
                    Hm, I didn´t know that I only have 31 flags for all civs. I always thought that each civ had 31 flags. I think I have to make a new event file with the correct flags for all civs.
                    You wrote that I´ve to look to the order of the events. Is the order, especially for the British reinforcements/French intervention correct?
                    American War of Independence
                    A Divided Nation - US Civilwar

                    Comment


                    • I´ve now uploaded the latest files of my scenario, which includes the whole campaigns of the war. Unfortunatelly the game crashed when I start the scenario and shows me the following message: Error "-3" in module "12" data 68 18. It should be something wrong with the events, when I start it without events, everything works.

                      Maybe someone could help me?
                      American War of Independence
                      A Divided Nation - US Civilwar

                      Comment


                      • Have you tried Mercator's events checking utility?

                        Here's the completed unit set:
                        Attached Files
                        http://sleague.apolyton.net/index.ph...ory:Civ2_Units

                        Comment


                        • the bmp:
                          Attached Files
                          http://sleague.apolyton.net/index.ph...ory:Civ2_Units

                          Comment


                          • Wow, great units, thanks very much.
                            No, I didn´t used Mercartors tool. I will download it and hopefully find the mistake.
                            American War of Independence
                            A Divided Nation - US Civilwar

                            Comment


                            • I´ve found the mistake, the complete Southern Theater was doubled in the events. I´ve deleted it and now everything works very fine. I´ve included the events for the British Campaign, after playtesting the scenario I will post the American files.

                              Please download it here:
                              http://sleague.apolyton.net/index.ph...#IV:_Downloads
                              and have fun with it.
                              American War of Independence
                              A Divided Nation - US Civilwar

                              Comment


                              • Good work Civ2units. Will take a look this afternoon
                                SCENARIO LEAGUE FORUM
                                SCENARIO LEAGUE WIKI SITE
                                SL INFORMATION THREAD
                                CIV WEBRING MULTIPLAYER FORUM

                                Comment

                                Working...
                                X