Announcement

Collapse
No announcement yet.

Quick event question.

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

  • Quick event question.

    In, for example, a unit killed event, what do I write as the owner if I want it to be a barbarian units. I want my unit to get killed by a barbaran unit, and that will trigger a new unit of mine to be born. I have named the barbarians outlaw. IIRC if the barbarians are the attacker I shouldput "trigger attacker" or something. Anyone knows?
    "Peace cannot be kept by force.
    It can only be achieved by understanding"

  • #2
    I think something like this should work:

    @IF
    UnitKilled
    unit=AnyUnit
    attacker=Outlaw
    defender=AnyBody
    @THEN
    CreateUnit
    owner=TriggerDefender
    unit=New Unit of Mine
    veteran=no
    homecity=none
    locations
    0,0
    1,1
    endlocations
    @ENDIF

    Quote from Macro.txt: (shouldn't you have read this first? )

    [q=macro.txt]TRIGGERATTACKER specifies the civilization that is the aggressor in a conflict trigger
    (UNITKILLED or CITYTAKEN)
    TRIGGERDEFENDER specifies the civilization that is the defender in a conflict trigger
    (UNITKILLED or CITYTAKEN)
    TRIGGERRECEIVER specifies the civilization that has the technology named in a
    RECEIVEDTECHNOLOGY trigger[/q]

    Though I believe they don't quite work properly? Or am I mixing things up? I can't remember.
    Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

    Comment


    • #3
      Originally posted by Mercator
      Quote from Macro.txt: (shouldn't you have read this first? )
      Quote from Krusty the Clown "But I'm a lazy lazy man.."

      Thanks for the info Merc. However, in my case I think it should be more like this:

      @IF
      UnitKilled
      unit=barbarian trigger
      attacker=Me
      defender=Outlaw
      @THEN
      CreateUnit
      owner=Me
      unit=New Unit of Mine
      veteran=no
      homecity=none
      locations
      0,0
      1,1
      endlocations
      @ENDIF

      So should I put "Outlaw" or TriggerDefender" as defender?

      I could put anybody as defender, but I want the defender to be the barbarians ONLY, as I use the same unit, with the evil force as a defender for a totally different event. I could make this a whole lot easy for me, since I have more unit slots, but if there's a specific thing to write for the barbarians, I want to learn.
      "Peace cannot be kept by force.
      It can only be achieved by understanding"

      Comment


      • #4
        Um, as defender you can only use Outlaw. TriggerDefender is sometihng you'd put in the action, not in the trigger. Read the macro.txt. (not gonna quote it now )
        Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

        Comment


        • #5
          Somehow it's not working with outlaw (or outlaws) there, so i guess I have to use my extra unit slots. No problem with that though.
          "Peace cannot be kept by force.
          It can only be achieved by understanding"

          Comment


          • #6
            @Arthedain:

            If you want to use a custom name for the Barbarians, you'll need to edit their entry in labels.txt. For MGE that'd be the last of these lines:
            Code:
            @LABELS
            888
            B.C.
            A.D.
            Civilization II Multiplayer Gold
            Building Sprites
            Map
            Status
            World
            City
            Building World
            Moving Units
            Viewing Pieces
            Loc
            Moves
            Veteran
            NONE
            Barbarians
            Originally posted by Arthedain
            I have named the barbarians outlaw.
            Or have you done that already?

            Originally posted by Mercator
            Though I believe they don't quite work properly? Or am I mixing things up? I can't remember.
            The AnyBody bug will kick in for older versions of Civ2. It's fixed in ToT.
            Catfish's Cave - Resources for Civ2: Test of Time | Test of Time FAQ | War of the Ring scenario

            Comment


            • #7
              Yeah Catfish, I've already renamed them to Outlaws.
              "Peace cannot be kept by force.
              It can only be achieved by understanding"

              Comment


              • #8
                Is that the only place you renamed them? What if you change it back to the original and use Barbarians in the rules? Does it still not work? Because then it would clearly be something else that's the problem.
                Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                Comment


                • #9
                  I'll have another bash at it then.

                  Originally posted by Arthedain
                  I want my unit to get killed by a barbaran unit, and that will trigger a new unit of mine to be born.
                  Originally posted by Arthedain
                  @IF
                  UnitKilled
                  unit=barbarian trigger
                  attacker=Me
                  defender=Outlaw
                  @THEN
                  OK, so who is meant to get killed, your unit or the barbarian? It sounds like you want the event triggered when your unit is killed by a specific type of barbarian unit. There is no provision in the events language to define the unit type of the attacker (the winner of the fight). In my WotR scenario, I get around this type of thing by limiting access to trigger units by way of map transport relationships (ToT only) and also via the 'attack air units in flight' flag, but that's probably not much use to you, is it?
                  Catfish's Cave - Resources for Civ2: Test of Time | Test of Time FAQ | War of the Ring scenario

                  Comment


                  • #10
                    Originally posted by Catfish
                    OK, so who is meant to get killed, your unit or the barbarian? It sounds like you want the event triggered when your unit is killed by a specific type of barbarian unit. There is no provision in the events language to define the unit type of the attacker (the winner of the fight). In my WotR scenario, I get around this type of thing by limiting access to trigger units by way of map transport relationships (ToT only) and also via the 'attack air units in flight' flag, but that's probably not much use to you, is it?
                    The barbarian unit is meant to be killed by my hero unit. It's the only unit that kan kill it. But I can't set the owner to anybody, since another hero unit is supposed to kill the same unit owned by the evil forces later on in the scenario. So this unit has to be owned by the barbarians (outlaws).

                    @ Mercator: I haven't had the time to actually change back the names yet. But I guess that's not the problem.
                    "Peace cannot be kept by force.
                    It can only be achieved by understanding"

                    Comment


                    • #11
                      Actually, I just put Outlaws as the defender again and it all worked out great. Thanks for the help guys.
                      "Peace cannot be kept by force.
                      It can only be achieved by understanding"

                      Comment


                      • #12
                        I know this question has been brought up before (couldn't find it bys earching though) but what do I do when the cheat menu is always activated when I load up a turn?
                        "Peace cannot be kept by force.
                        It can only be achieved by understanding"

                        Comment


                        • #13
                          Please, don't make me start a new thread for anyone to see my new question.
                          "Peace cannot be kept by force.
                          It can only be achieved by understanding"

                          Comment


                          • #14
                            It happens to all games you're loading/starting, right? Not just one?

                            Deleting the Civ2.dat file fixes that, I believe.
                            Civilization II: maps, guides, links, scenarios, patches and utilities (+ Civ2Tech and CivEngineer)

                            Comment


                            • #15
                              Right, and now when you told me, I remembered. Thanks mate, you're a true civ2 hero.
                              "Peace cannot be kept by force.
                              It can only be achieved by understanding"

                              Comment

                              Working...
                              X