Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.
ChgEvtOccurs
From AGEWiki
(clarify the effect of Change.... correct note on dormancy method) |
|||
Line 3: | Line 3: | ||
| syntax = ''EventName''; ''OccParam''; ''Value'' | | syntax = ''EventName''; ''OccParam''; ''Value'' | ||
| description = Changes the allowed occurences of a given event or changes the counter how often the event already occured. | | description = Changes the allowed occurences of a given event or changes the counter how often the event already occured. | ||
+ | |||
+ | '''The new value will be the mathematical difference between the starting value and the value you enter''' ''[negative value will decrease occurances]'' | ||
See also [[SetEvtOccurs]] | See also [[SetEvtOccurs]] | ||
Line 8: | Line 10: | ||
| example-description = This increases the count for the event ''evt_nam_CSA_ChapmanPlot1863Succeeds'' by two occurrences. | | example-description = This increases the count for the event ''evt_nam_CSA_ChapmanPlot1863Succeeds'' by two occurrences. | ||
| example2 = evt_nam_CSA_FranceDeclaresWar;MaxOccurs;1 | | example2 = evt_nam_CSA_FranceDeclaresWar;MaxOccurs;1 | ||
- | | example2-description = This increases the maximum times that the event ''evt_nam_CSA_FranceDeclaresWar'' can occur by one. | + | | example2-description = This ''increases'' the maximum times that the event ''evt_nam_CSA_FranceDeclaresWar'' can occur by one. |
- | Note: To make an event dormant | + | Note: To make an event dormant use [[SetEvtOccurs]] to set MaxOccurs to 0. |
| param1 = EventName | | param1 = EventName | ||
| param1desc = String; Name (alias) of the event | | param1desc = String; Name (alias) of the event |
Latest revision as of 15:47, 5 November 2012
ChgEvtOccurs | |||
Syntax ChgEvtOccurs = EventName; OccParam; Value Description Changes the allowed occurences of a given event or changes the counter how often the event already occured. The new value will be the mathematical difference between the starting value and the value you enter [negative value will decrease occurances] See also SetEvtOccurs Example ChgEvtOccurs = evt_nam_CSA_ChapmanPlot1863Succeeds;CuOccurs;2 This increases the count for the event evt_nam_CSA_ChapmanPlot1863Succeeds by two occurrences. ChgEvtOccurs = evt_nam_CSA_FranceDeclaresWar;MaxOccurs;1 This increases the maximum times that the event evt_nam_CSA_FranceDeclaresWar can occur by one. Note: To make an event dormant use SetEvtOccurs to set MaxOccurs to 0. |
Parameters
String; Name (alias) of the event
String; [MaxOccurs, CuOccurs];
MaxOccurs=0: Event never fires. MaxOccurs=999: Event fires infinite times.
Integer; [0, 999] |