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
(Created page with '{{ scriptcommand | name =EvalDIAttribute | type = | cat = | syntax = Fac2; Attribute; RelOp; AttValue; Duration; RelOp; DuValue or = Fac2; Att…') |
|||
Line 6: | Line 6: | ||
or | or | ||
= Fac2; Attribute; RelOp; Value | = Fac2; Attribute; RelOp; Value | ||
- | | description =Checks all Diplomatic | + | | 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 =GBR;*military*;<=;*military{{!}}2;Duration;<=;6 | | example =GBR;*military*;<=;*military{{!}}2;Duration;<=;6 | ||
- | | example-description = TRUE if the GBR [[faction]] has Military attribute <=2 in place for <= 6 months | + | | example-description = TRUE if the GBR [[faction]] has Military attribute <=2 in place for <= 6 months |
| example2 =GBR;*military*;<=;2 | | example2 =GBR;*military*;<=;2 | ||
| example2-description = TRUE if the GBR faction Military attribute has a value <= 2 | | example2-description = TRUE if the GBR faction Military attribute has a value <= 2 |
Latest revision as of 14:49, 3 March 2011
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
Valid FactionTag
Valid Attribute
One of
Attribute value or postitive integer
Literal keyword
One of
Duration value in months
|