Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

SetEvtOccurs

From AGEWiki

Revision as of 15:43, 5 November 2012 by Lodilefty (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SetEvtOccurs

Syntax  

SetEvtOccurs = EventName; OccParam; Value

Description

Sets the allowed occurences of a given event or sets the counter how often the event already occured.

The new value will equal exactly the value you enter.

See also ChgEvtOccurs

Example  

SetEvtOccurs = evt_nam_CSA_ChapmanPlot1863Succeeds;CuOccurs;2

This sets the count for the event evt_nam_CSA_ChapmanPlot1863Succeeds to two occurrences.  

SetEvtOccurs = evt_nam_CSA_FranceDeclaresWar;MaxOccurs;1

This sets that the event evt_nam_CSA_FranceDeclaresWar can occur a total of one time.

Note: To make an event dormant, set MaxOccurs to 0, or set cuOccurs to a number which is equal or greater than the current Maximum number of times it can be fired.

 

Parameters

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]

Forums