According to:
http://www.ageod.net/agewiki/SetEvtOccurs
the SetEvtOccurs arguments are:
EventName
String; Name (alias) of the event
OccParam
String; [MaxOccurs, CuOccurs];
* MaxOccurs - Changes the allowed amount of occurences.
MaxOccurs=0: Event never fires.
MaxOccurs=999: Event fires infinite times.
* CuOccurs - Changes the counter for how often the event already has occured.
Value
Integer; [0, 999]
The AGEWiki suggests that the third parameter must be between 0 to (positive) 999 only.
More from the kwd database:
[root@telemann agelint]# for g in acw ncp pon rop rus wia; do echo $g; ./kwddat SetEvtOccurs $g | egrep -cv 999; ./kwddat SetEvtOccurs $g | egrep -c ";999"; ./kwddat SetEvtOccurs $g | egrep -c ";-999"; echo; done
acw
0
0
0
ncp
0
0
0
pon
419
8
0
rop
85
0
0
rus
511
3
0
wia
29
0
0
The first figure is no 999, the second is positive 999, the third is -999.
As you can see, there is no instance of -999.
In fact:
[root@telemann agelint]# for g in acw ncp pon rop rus wia; do echo $g; ./kwddat SetEvtOccurs $g | awk -F\; '$NF>=0' | wc -l; ./kwddat SetEvtOccurs $g | awk -F\; '$NF<0' | wc -l; echo; done
acw
0
0
ncp
0
0
pon
427
0
rop
85
0
rus
510
4
wia
29
0
The only game with negative final value is rus, with 4 instances. They are:
[root@telemann agelint]# ./kwddat SetEvtOccurs rus | awk -F\; '$NF<0'
1 SetEvtOccurs = $evt_nam_RED_PartialMobilization_AIActivate2;CuOccurs;-1
1 SetEvtOccurs = $evt_nam_RED_PartialMobilization_AIActivate3;CuOccurs;-1
1 SetEvtOccurs = $evt_nam_RED_PartialMobilization_AIActivate;CuOccurs;-1
1 SetEvtOccurs = evt_nam_RED_UralTheaterprevendcountcons;CuOccurs;0;
Hmm, actually the fourth instance is bogus; see the spurious extra line-ending semi-colon.
A complete set of kwddat SevEvtOccurs data is available here:
SetEvtOccurs.dat.zip
(That's the sort of data I hope one day to make available for common reference on the Web.)
That's all the info I have on this.
What do you think? Should it be 'int' (positive or negative) or 'intpos' for that last parameter value?