Announcement

Collapse
No announcement yet.

What's wrong here?

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

  • What's wrong here?

    I'm having this nice event about captured Caravans. When someone captures one the person will get money and the one who looses one will loose money. Simple isn't it?

    However, everything works fine in the first turn. But then it somehow does not seem to work any more.

    Here is the event:

    @IF
    UNITKILLED
    unit=Caravan
    attacker=anybody
    defender=anybody
    @THEN
    TEXT
    NEWS: Caravans attacked! Attackers rejoice with the riches captured!
    ENDTEXT
    CHANGEMONEY
    receiver=triggerattacker
    amount=100
    @ENDIF

    @IF
    UNITKILLED
    unit=Caravan
    attacker=anybody
    defender=anybody
    @THEN
    CHANGEMONEY
    receiver=triggerdefender
    amount=-100
    @ENDIF

    I can't see that something should be wrong with it. No "JustOnce" lines, no nothing.

    So, any ideas?

    P.S. I just noticed that it does only trigger once per turn. So I can attack one caravan and I will get money but not with the second, if I attack one.
    The treasury seems to have no influence on this.
    <font size=1 face=Arial color=444444>[This message has been edited by Hendrik the Great (edited February 18, 2000).]</font>
    The Lost Geologist Blog
    http://lostgeologist.blogspot.com

  • #2
    There is a major bug using the lines:
    attacker=anybody
    defender=anybody

    and the triggerattacker/triggerdefender


    Basically the first tribe to trigger the event is then considered by the game to be a tribe called "anybody" and if any other tribe kills a caravan the event will not work. I think the problem might also extend to other events where the anybody parameter is used. You might want to play around but I can only recommend that you duplicate the event for each tribe. Annoying, I know.
    "I didn't invent these rules, I'm just going to use them against you."

    Comment


    • #3
      Duplicating it for every tribe? I mean I could do that but my events file is kind of crowded by now.

      Any other solutions? Other than starting a second events file...
      The Lost Geologist Blog
      http://lostgeologist.blogspot.com

      Comment


      • #4
        Funny, I had the same problem with my Camps and temples in "Pharaoh"

        Think seriously. Who exactly will and should build caravans? You've gotta be picky here, otherwise you'll have to forget the event.

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

        We who grew up tall and proud
        In the shadow of the mushroom cloud
        Convinced our voices can't be heard
        We just want to scream it louder and louder:
        "What the hell are we fighting for?"
        "Just surrender and it won't hurt at all"
        -Brian May (Queen)
        Follow the masses!
        30,000 lemmings can't be wrong!

        Comment


        • #5
          T$£(!)$%££""£$£$$%^$...

          Ok, let's start thinking.

          Who is building caravan? All of them. NO

          Who is making a lot of money through them? All of them. NO

          Who was the trade power of the time and who is making too much money out of it for my taste? Ahh!
          Venetians and Latins! Bingo!

          Thanks!

          The Lost Geologist Blog
          http://lostgeologist.blogspot.com

          Comment

          Working...
          X