 |
|  |
 |
|
Hendrik the Great
|
|
Good old Germany!
Oct 1999 time: 06:13
|
|
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.
[This message has been edited by Hendrik the Great (edited February 18, 2000).]
|
|
|  |
 |
|
Panda
|
|
Europe
Jan 1970 time: 05:13
|
|
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.
|
|
|  |
 |
|
Hendrik the Great
|
|
Good old Germany!
Oct 1999 time: 06:13
|
|
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...
|
|
|  |
 |
|
Hendrik the Great
|
|
Good old Germany!
Oct 1999 time: 06:13
|
|
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!
|
|
|  |
All times are GMT. The time now is 05:13. Apolyton Time is 00:13. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|