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

EvalDIAttribute

From AGEWiki

Jump to: navigation, search

EvalDIAttribute

Syntax  

EvalDIAttribute = Fac2; Attribute; RelOp; AttValue; Duration; RelOp; DuValue
                  or
                = Fac2; Attribute; RelOp; Value

Description

Checks all Diplomatic Items which exist between two factions for the existence of a certain Attribute and, optional, for how long the DI is in place. Diplomatic Items (sometime called Diplomatic Objects or more broadly 'Treaties' are defined in Diplomacy.xls (only if rule Advanced Diplomacy is on). Each DI is defined by a set of attributes, like *Military* 2, etc. This allow to sort or find them in a very powerful way. For example Limited War has the Attribute *War* 2, Full War is *War* 3, etc. So instead of searching for a particular Diplomatic Item, the search can be done by attribute, although some very common items, like War or Peace have their dedicated commands.

Example  

EvalDIAttribute = GBR;*military*;<=;*military|2;Duration;<=;6

TRUE if the GBR faction has Military attribute <=2 in place for <= 6 months  

EvalDIAttribute = GBR;*military*;<=;2

TRUE if the GBR faction Military attribute has a value <= 2

 

Parameters

Fac2

Valid FactionTag

Attribute;

Valid Attribute

RelOp;

One of

=, <, >, <=, >=, <>
AttValue or Value

Attribute value or postitive integer

Depends on which syntax is used (see examples)
Duration;

Literal keyword

RelOp;

One of

=, <, >, <=, >=
DuValue

Duration value in months

Positive integer
Forums