Announcement

Collapse
No announcement yet.

events

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

  • events

    Is there any way to change possession of cities using events.txt? I'm doing an Alexander scenario & I'd like to have Thebes revolt (become a barbarian possession) after Alexander subdues a northern Thracian camp. Would the trigger be invalidated if the town was destroyed? Is there any comprehensive guide anywhere to syntax for the events editor so I could get a comprehensive idea of it's capability?

  • #2
    Well, this might work, (other readers check my work, i haven't done free hand macro in a while)

    @IF
    CityTaken
    city=Tracia (or whatever)
    attacker=greeks (or whatever)
    defender=egyptians (or whatever)

    @THEN
    Text
    Thebeian citezens take to arms and revolt in thebes!
    EndText
    CreateUnit
    unit=rebel(or whatever)
    owner=barbarians
    Location
    x,x
    x,x
    x,x
    x,x
    x,x
    Endlocations
    @ENDIF

    to make multiple units you have to copy the whole thing again, just change the (x,x) values and then remove the text message part. I'm sure my code isn't totally correct but you should get the idea if you are fammilliar with the editor. Also, I don't think the editor will let you make a unit owner value of barbarians, so you will have to open the events.txt yourself and put it in.
    "There is no can't, only won't."
    -Line from American Kick Boxer 2 (American Shaolin)

    Comment


    • #3
      You could try by dropping a movement-modified barbarian nuke on the city (from a connecting square) and then place a barbarian invading unit on the city's outskirts:

      @IF
      CITYTAKEN
      city=Thracian Camp
      attacker=TribeA
      defender=TribeB
      @THEN
      CREATEUNIT
      unit=Nuclear Msl.
      owner=Barbarians
      veteran=no
      homecity=None
      locations
      0,0
      0,2
      2,0
      endlocations
      JUSTONCE
      @ENDIF

      @IF
      CITYTAKEN
      city=Thracian Camp
      attacker=TribeA
      defender=TribeB
      @THEN
      CREATEUNIT
      unit=Legion
      owner=Barbarians
      veteran=yes
      homecity=None
      locations
      2,0
      0,2
      endlocations
      JUSTONCE
      @ENDIF

      I haven't tested this, but it should work OK. You'll probably need to account for pollution also. The city should have a reasonable population (ideally >4) to avoid being wiped out by the nuke. In answer to your question, if the city is destroyed in the attack, it is not 'taken' and you're right - this event structure won't work. As before, I haven't tested it, but in theory it looks OK.

      As for understanding more about events, if you've yet to see it, there's a file called 'macro.txt' in your Civ2 folder.

      Comment


      • #4
        To do the nuke thing, you'd probably have to alter the mushroom cloud animation and the explosion sound to make it look and sound like a revolt (I'd just blank out the mushroom cloud personally)
        And make the nuke look like a barbarian unit

        Comment


        • #5
          Another possbility is make a sepperate revolt civilization. Make it's capital on some unreachable spot (an isle in the mediterranean surrounded by immortal units would do well, camouflage them as clips or somtething) and give them Thebai and make them allied at the start. Then:

          @IF
          CITYTAKEN
          city=Thracian camp
          attacker=Macedonians
          defender=Thracians
          @THEN
          TEXT
          Rumours of Alexander's death in Thracia bring the Greeks of Thebai to revolt!
          endtext
          MAKEAGRESSION
          who=Independents/whatever
          whom=Macedonian Greeks
          @ENDIF

          Use this civ to simulate other events too: Partisan warfare in the Hinudkush, revolts during Alexander's absence in India, Bessos etc. It's actually much better than taking Barbarians.

          ------------------
          Follow the masses!
          30,000 lemmings can't be wrong.
          Follow the masses!
          30,000 lemmings can't be wrong!

          Comment


          • #6
            Or if you do have the room for Stefan's idea, don't bother with a city and just place an immobile settler somewhere. Use the event as described and create units all around Thebes. The only drawback is that if Thebes is retaken the revolt civ will be destroyed.
            "You give a guy a crown and it goes straight to his head."
            -OOTS

            Comment


            • #7
              Zhugeliang: Why would it be necessary to specify five sets of coordinates to place one unit? I would think one set for each unit would be sufficient.
              Michael Daumen: Thebes was destroyed in the supression of the revolt, so that wouldn't be an issue.

              Comment


              • #8
                Speaking of destroyed, how about this:
                @IF
                CITYTAKEN
                city=Persepolis/Thebai
                @THEN
                TEXT blablabla
                ENDTEXT
                CHANGETERRAIN
                terrain=(ruins)
                locations
                etc.

                I did that in "Artaxerxes" with Persepolis. Is your map big enough that Boeoetia has a square of 4 terrains?

                ------------------
                Follow the masses!
                30,000 lemmings can't be wrong.
                Follow the masses!
                30,000 lemmings can't be wrong!

                Comment


                • #9
                  Hmm, I like that change terrain idea.
                  "There is no can't, only won't."
                  -Line from American Kick Boxer 2 (American Shaolin)

                  Comment


                  • #10
                    Originally posted by lmstoudt on 12-08-1999 10:37 AM
                    Zhugeliang: Why would it be necessary to specify five sets of coordinates to place one unit? I would think one set for each unit would be sufficient.
                    Michael Daumen: Thebes was destroyed in the supression of the revolt, so that wouldn't be an issue.
                    You must prepare for all contingencies, if the player has a unit in the defined square it will look to the next set of maprect coordinates to place the unit, you should always use all the slots if the created units must apeare, otherwise its not important.

                    "There is no can't, only won't."
                    -Line from American Kick Boxer 2 (American Shaolin)

                    Comment

                    Working...
                    X