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).]
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).]
Comment