DUMMYNATION Scripting reference

Expression methods

Methods read game data and combine values. Call them with CALL values, nesting calls to chain them: the inner call produces the object the outer one reads from.

Examples pass each argument as a local variable named after it; replace them with any value of the same type. Methods that read an object take it as their first argument.

General methods

General helpers that do not belong to one object type, such as boolean logic and comparisons of objects.

boolean.equal

Boolean equals (left == right).

boolean.equal(left: BOOLEAN, right: BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"boolean.equal","args":[{"kind":"VARIABLE","type":"BOOLEAN","value":"left"},{"kind":"VARIABLE","type":"BOOLEAN","value":"right"}]}
Compact source
(call bool boolean.equal (var bool left) (var bool right))

boolean.not

Not.

boolean.not(value: BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"boolean.not","args":[{"kind":"VARIABLE","type":"BOOLEAN","value":"value"}]}
Compact source
(call bool boolean.not (var bool value))

boolean.not_equal

Boolean not equals (left != right).

boolean.not_equal(left: BOOLEAN, right: BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"boolean.not_equal","args":[{"kind":"VARIABLE","type":"BOOLEAN","value":"left"},{"kind":"VARIABLE","type":"BOOLEAN","value":"right"}]}
Compact source
(call bool boolean.not_equal (var bool left) (var bool right))

chance

Chance.

chance(value: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"chance","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call bool chance (var num value))

country_ideology.equal

Country ideology equals (left == right).

country_ideology.equal(left: COUNTRY_IDEOLOGY, right: COUNTRY_IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ideology.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"left"},{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"right"}]}
Compact source
(call bool country_ideology.equal (var country_ideology left) (var country_ideology right))

country_ideology.exists

Country ideology exists.

country_ideology.exists(value: COUNTRY_IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ideology.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"value"}]}
Compact source
(call bool country_ideology.exists (var country_ideology value))

country_ideology.is_null

Country ideology is null.

country_ideology.is_null(value: COUNTRY_IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ideology.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"value"}]}
Compact source
(call bool country_ideology.is_null (var country_ideology value))

country_ideology.not_equal

Country ideology not equals (left != right).

country_ideology.not_equal(left: COUNTRY_IDEOLOGY, right: COUNTRY_IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ideology.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"left"},{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"right"}]}
Compact source
(call bool country_ideology.not_equal (var country_ideology left) (var country_ideology right))

goal_type.equal

Goal type equals (left == right).

goal_type.equal(left: GOAL_TYPE, right: GOAL_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"goal_type.equal","args":[{"kind":"VARIABLE","type":"GOAL_TYPE","value":"left"},{"kind":"VARIABLE","type":"GOAL_TYPE","value":"right"}]}
Compact source
(call bool goal_type.equal (var goal_type left) (var goal_type right))

goal_type.not_equal

Goal type not equals (left != right).

goal_type.not_equal(left: GOAL_TYPE, right: GOAL_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"goal_type.not_equal","args":[{"kind":"VARIABLE","type":"GOAL_TYPE","value":"left"},{"kind":"VARIABLE","type":"GOAL_TYPE","value":"right"}]}
Compact source
(call bool goal_type.not_equal (var goal_type left) (var goal_type right))

not

Not.

not(value: BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"not","args":[{"kind":"VARIABLE","type":"BOOLEAN","value":"value"}]}
Compact source
(call bool not (var bool value))

Number methods

Arithmetic, comparisons, rounding, formatting and random numbers (number.*).

number.abs

Absolute.

number.abs(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.abs","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.abs (var num value))

number.add

Add (left + right).

number.add(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.add","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.add (var num left) (var num right))

number.annual_from_daily

Annual from daily.

number.annual_from_daily(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.annual_from_daily","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.annual_from_daily (var num value))

number.cbrt

Cube root.

number.cbrt(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.cbrt","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.cbrt (var num value))

number.ceil

Ceiling.

number.ceil(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.ceil","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.ceil (var num value))

number.clamp

Clamp.

number.clamp(value: NUMBER, min: NUMBER, max: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.clamp","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"},{"kind":"VARIABLE","type":"NUMBER","value":"min"},{"kind":"VARIABLE","type":"NUMBER","value":"max"}]}
Compact source
(call num number.clamp (var num value) (var num min) (var num max))

number.cube

Cube.

number.cube(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.cube","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.cube (var num value))

number.daily_from_annual

Daily from annual.

number.daily_from_annual(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.daily_from_annual","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.daily_from_annual (var num value))

number.div

Divide (left / right).

number.div(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.div","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.div (var num left) (var num right))

number.equal

Number equals (left == right).

number.equal(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.equal","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.equal (var num left) (var num right))

number.exp

Exponential.

number.exp(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.exp","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.exp (var num value))

number.floor

Floor.

number.floor(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.floor","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.floor (var num value))

number.format

Format. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

number.format(value: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"number.format","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call str number.format (var num value))

number.format_bonus_percent

Format bonus percent. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

number.format_bonus_percent(value: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"number.format_bonus_percent","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call str number.format_bonus_percent (var num value))

number.format_percent

Format percent. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

number.format_percent(value: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"number.format_percent","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call str number.format_percent (var num value))

number.greater

Greater than (left > right).

number.greater(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.greater","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.greater (var num left) (var num right))

number.greater_equal

Greater or equal (left >= right).

number.greater_equal(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.greater_equal","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.greater_equal (var num left) (var num right))

number.inverse_lerp

Inverse interpolate.

number.inverse_lerp(from: NUMBER, to: NUMBER, value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.inverse_lerp","args":[{"kind":"VARIABLE","type":"NUMBER","value":"from"},{"kind":"VARIABLE","type":"NUMBER","value":"to"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.inverse_lerp (var num from) (var num to) (var num value))

number.lerp

Interpolate.

number.lerp(from: NUMBER, to: NUMBER, percent: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.lerp","args":[{"kind":"VARIABLE","type":"NUMBER","value":"from"},{"kind":"VARIABLE","type":"NUMBER","value":"to"},{"kind":"VARIABLE","type":"NUMBER","value":"percent"}]}
Compact source
(call num number.lerp (var num from) (var num to) (var num percent))

number.less

Less than (left < right).

number.less(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.less","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.less (var num left) (var num right))

number.less_equal

Less or equal (left <= right).

number.less_equal(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.less_equal","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.less_equal (var num left) (var num right))

number.log

Natural log.

number.log(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.log","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.log (var num value))

number.log10

Log 10.

number.log10(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.log10","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.log10 (var num value))

number.max

Maximum.

number.max(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.max","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.max (var num left) (var num right))

number.min

Minimum.

number.min(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.min","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.min (var num left) (var num right))

number.mod

Modulo (left % right).

number.mod(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.mod","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.mod (var num left) (var num right))

number.mul

Multiply (left * right).

number.mul(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.mul","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.mul (var num left) (var num right))

number.not_equal

Number not equals (left != right).

number.not_equal(left: NUMBER, right: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"number.not_equal","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call bool number.not_equal (var num left) (var num right))

number.pow

Power.

number.pow(left: NUMBER, exponent: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.pow","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"exponent"}]}
Compact source
(call num number.pow (var num left) (var num exponent))

number.random

Random 0 to 1.

number.random() → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.random","args":[]}
Compact source
(call num number.random)

number.random_between

Random between.

number.random_between(min: NUMBER, max: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.random_between","args":[{"kind":"VARIABLE","type":"NUMBER","value":"min"},{"kind":"VARIABLE","type":"NUMBER","value":"max"}]}
Compact source
(call num number.random_between (var num min) (var num max))

number.random_gaussian

Random bell curve.

number.random_gaussian(mean: NUMBER, deviation: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.random_gaussian","args":[{"kind":"VARIABLE","type":"NUMBER","value":"mean"},{"kind":"VARIABLE","type":"NUMBER","value":"deviation"}]}
Compact source
(call num number.random_gaussian (var num mean) (var num deviation))

number.random_triangular

Random triangular.

number.random_triangular(min: NUMBER, max: NUMBER, most_likely: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.random_triangular","args":[{"kind":"VARIABLE","type":"NUMBER","value":"min"},{"kind":"VARIABLE","type":"NUMBER","value":"max"},{"kind":"VARIABLE","type":"NUMBER","value":"most_likely"}]}
Compact source
(call num number.random_triangular (var num min) (var num max) (var num most_likely))

number.remap

Remap.

number.remap(value: NUMBER, from_min: NUMBER, from_max: NUMBER, to_min: NUMBER, to_max: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.remap","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"},{"kind":"VARIABLE","type":"NUMBER","value":"from_min"},{"kind":"VARIABLE","type":"NUMBER","value":"from_max"},{"kind":"VARIABLE","type":"NUMBER","value":"to_min"},{"kind":"VARIABLE","type":"NUMBER","value":"to_max"}]}
Compact source
(call num number.remap (var num value) (var num from_min) (var num from_max) (var num to_min) (var num to_max))

number.round

Round.

number.round(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.round","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.round (var num value))

number.sqrt

Square root.

number.sqrt(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.sqrt","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.sqrt (var num value))

number.square

Square.

number.square(value: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.square","args":[{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call num number.square (var num value))

number.sub

Subtract (left - right).

number.sub(left: NUMBER, right: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"number.sub","args":[{"kind":"VARIABLE","type":"NUMBER","value":"left"},{"kind":"VARIABLE","type":"NUMBER","value":"right"}]}
Compact source
(call num number.sub (var num left) (var num right))

Text methods

Text helpers: joining, comparing and searching text (string.*).

string.after

After.

string.after(text: STRING, separator: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.after","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"separator"}]}
Compact source
(call str string.after (var str text) (var str separator))

string.append

Append.

string.append(text: STRING, suffix: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.append","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"suffix"}]}
Compact source
(call str string.append (var str text) (var str suffix))

string.before

Before.

string.before(text: STRING, separator: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.before","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"separator"}]}
Compact source
(call str string.before (var str text) (var str separator))

string.contains

Contains.

string.contains(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.contains","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.contains (var str text) (var str text))

string.contains_ignore_case

Contains ignoring case.

string.contains_ignore_case(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.contains_ignore_case","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.contains_ignore_case (var str text) (var str text))

string.ends_with

Ends with.

string.ends_with(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.ends_with","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.ends_with (var str text) (var str text))

string.ends_with_ignore_case

Ends with ignoring case.

string.ends_with_ignore_case(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.ends_with_ignore_case","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.ends_with_ignore_case (var str text) (var str text))

string.equal

Text equals (text == text).

string.equal(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.equal","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.equal (var str text) (var str text))

string.equal_ignore_case

Text equals ignoring case.

string.equal_ignore_case(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.equal_ignore_case","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.equal_ignore_case (var str text) (var str text))

string.index_of

Index of.

string.index_of(text: STRING, search: STRING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"string.index_of","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"search"}]}
Compact source
(call num string.index_of (var str text) (var str search))

string.insert

Insert.

string.insert(text: STRING, at: NUMBER, insert: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.insert","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"NUMBER","value":"at"},{"kind":"VARIABLE","type":"STRING","value":"insert"}]}
Compact source
(call str string.insert (var str text) (var num at) (var str insert))

string.is_blank

Is blank.

string.is_blank(text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.is_blank","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.is_blank (var str text))

string.is_empty

Is empty.

string.is_empty(text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.is_empty","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.is_empty (var str text))

string.last_index_of

Last index of.

string.last_index_of(text: STRING, search: STRING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"string.last_index_of","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"search"}]}
Compact source
(call num string.last_index_of (var str text) (var str search))

string.left

Left.

string.left(text: STRING, count: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.left","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"NUMBER","value":"count"}]}
Compact source
(call str string.left (var str text) (var num count))

string.length

Length.

string.length(text: STRING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"string.length","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call num string.length (var str text))

string.lowercase

Lowercase.

string.lowercase(text: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.lowercase","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call str string.lowercase (var str text))

string.not_equal

Text not equals (text != text).

string.not_equal(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.not_equal","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.not_equal (var str text) (var str text))

string.not_equal_ignore_case

Text not equals ignoring case.

string.not_equal_ignore_case(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.not_equal_ignore_case","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.not_equal_ignore_case (var str text) (var str text))

string.prepend

Prepend.

string.prepend(text: STRING, prefix: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.prepend","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"prefix"}]}
Compact source
(call str string.prepend (var str text) (var str prefix))

string.remove

Remove.

string.remove(text: STRING, remove: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.remove","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"remove"}]}
Compact source
(call str string.remove (var str text) (var str remove))

string.repeat

Repeat.

string.repeat(text: STRING, count: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.repeat","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"NUMBER","value":"count"}]}
Compact source
(call str string.repeat (var str text) (var num count))

string.replace

Replace.

string.replace(text: STRING, search: STRING, replacement: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.replace","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"search"},{"kind":"VARIABLE","type":"STRING","value":"replacement"}]}
Compact source
(call str string.replace (var str text) (var str search) (var str replacement))

string.right

Right.

string.right(text: STRING, count: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.right","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"NUMBER","value":"count"}]}
Compact source
(call str string.right (var str text) (var num count))

string.starts_with

Starts with.

string.starts_with(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.starts_with","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.starts_with (var str text) (var str text))

string.starts_with_ignore_case

Starts with ignoring case.

string.starts_with_ignore_case(text: STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.starts_with_ignore_case","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.starts_with_ignore_case (var str text) (var str text))

string.substring

Substring.

string.substring(text: STRING, start: NUMBER, end: NUMBER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.substring","args":[{"kind":"VARIABLE","type":"STRING","value":"text"},{"kind":"VARIABLE","type":"NUMBER","value":"start"},{"kind":"VARIABLE","type":"NUMBER","value":"end"}]}
Compact source
(call str string.substring (var str text) (var num start) (var num end))

string.to_boolean

Value.

string.to_boolean(text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"string.to_boolean","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool string.to_boolean (var str text))

string.to_number

Value.

string.to_number(text: STRING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"string.to_number","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call num string.to_number (var str text))

string.trim

Trim.

string.trim(text: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.trim","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call str string.trim (var str text))

string.uppercase

Uppercase.

string.uppercase(text: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"string.uppercase","args":[{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call str string.uppercase (var str text))

Color methods

Building and changing colors (color.*).

color.alpha

Alpha.

color.alpha(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.alpha","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.alpha (var color color))

color.blend

Blend.

color.blend(color: COLOR, to: COLOR, percent: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.blend","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"COLOR","value":"to"},{"kind":"VARIABLE","type":"NUMBER","value":"percent"}]}
Compact source
(call color color.blend (var color color) (var color to) (var num percent))

color.blue

Blue.

color.blue(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.blue","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.blue (var color color))

color.conditionally

Conditionally.

color.conditionally(if: BOOLEAN, then: COLOR, else: COLOR) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.conditionally","args":[{"kind":"VARIABLE","type":"BOOLEAN","value":"if"},{"kind":"VARIABLE","type":"COLOR","value":"then"},{"kind":"VARIABLE","type":"COLOR","value":"else"}]}
Compact source
(call color color.conditionally (var bool if) (var color then) (var color else))

color.darken

Darken.

color.darken(color: COLOR, amount: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.darken","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"amount"}]}
Compact source
(call color color.darken (var color color) (var num amount))

color.equal

Color equals (color == color).

color.equal(color: COLOR, color: COLOR) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"color.equal","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call bool color.equal (var color color) (var color color))

color.format

Format.

color.format(color: COLOR) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"color.format","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call str color.format (var color color))

color.from_hsv

From hsv.

color.from_hsv(hue: NUMBER, saturation: NUMBER, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.from_hsv","args":[{"kind":"VARIABLE","type":"NUMBER","value":"hue"},{"kind":"VARIABLE","type":"NUMBER","value":"saturation"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.from_hsv (var num hue) (var num saturation) (var num value))

color.from_hsva

From hsva.

color.from_hsva(hue: NUMBER, saturation: NUMBER, value: NUMBER, alpha: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.from_hsva","args":[{"kind":"VARIABLE","type":"NUMBER","value":"hue"},{"kind":"VARIABLE","type":"NUMBER","value":"saturation"},{"kind":"VARIABLE","type":"NUMBER","value":"value"},{"kind":"VARIABLE","type":"NUMBER","value":"alpha"}]}
Compact source
(call color color.from_hsva (var num hue) (var num saturation) (var num value) (var num alpha))

color.from_rgb

From rgb.

color.from_rgb(red: NUMBER, green: NUMBER, blue: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.from_rgb","args":[{"kind":"VARIABLE","type":"NUMBER","value":"red"},{"kind":"VARIABLE","type":"NUMBER","value":"green"},{"kind":"VARIABLE","type":"NUMBER","value":"blue"}]}
Compact source
(call color color.from_rgb (var num red) (var num green) (var num blue))

color.from_rgba

From rgba.

color.from_rgba(red: NUMBER, green: NUMBER, blue: NUMBER, alpha: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.from_rgba","args":[{"kind":"VARIABLE","type":"NUMBER","value":"red"},{"kind":"VARIABLE","type":"NUMBER","value":"green"},{"kind":"VARIABLE","type":"NUMBER","value":"blue"},{"kind":"VARIABLE","type":"NUMBER","value":"alpha"}]}
Compact source
(call color color.from_rgba (var num red) (var num green) (var num blue) (var num alpha))

color.grayscale

Grayscale.

color.grayscale(color: COLOR) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.grayscale","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call color color.grayscale (var color color))

color.green

Green.

color.green(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.green","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.green (var color color))

color.hue

Hue.

color.hue(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.hue","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.hue (var color color))

color.invert

Invert.

color.invert(color: COLOR) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.invert","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call color color.invert (var color color))

color.lighten

Lighten.

color.lighten(color: COLOR, amount: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.lighten","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"amount"}]}
Compact source
(call color color.lighten (var color color) (var num amount))

color.multiply

Multiply.

color.multiply(color: COLOR, by: COLOR) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.multiply","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"COLOR","value":"by"}]}
Compact source
(call color color.multiply (var color color) (var color by))

color.multiply_alpha

Multiply alpha.

color.multiply_alpha(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.multiply_alpha","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.multiply_alpha (var color color) (var num value))

color.not_equal

Color not equals (color != color).

color.not_equal(color: COLOR, color: COLOR) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"color.not_equal","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call bool color.not_equal (var color color) (var color color))

color.red

Red.

color.red(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.red","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.red (var color color))

color.saturation

Saturation.

color.saturation(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.saturation","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.saturation (var color color))

color.tint

Tint.

color.tint(color: COLOR, to: COLOR, percent: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.tint","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"COLOR","value":"to"},{"kind":"VARIABLE","type":"NUMBER","value":"percent"}]}
Compact source
(call color color.tint (var color color) (var color to) (var num percent))

color.value

Value.

color.value(color: COLOR) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"color.value","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"}]}
Compact source
(call num color.value (var color color))

color.with_alpha

With alpha.

color.with_alpha(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_alpha","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.with_alpha (var color color) (var num value))

color.with_blue

With blue.

color.with_blue(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_blue","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.with_blue (var color color) (var num value))

color.with_green

With green.

color.with_green(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_green","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.with_green (var color color) (var num value))

color.with_hue

With hue.

color.with_hue(color: COLOR, hue: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_hue","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"hue"}]}
Compact source
(call color color.with_hue (var color color) (var num hue))

color.with_red

With red.

color.with_red(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_red","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.with_red (var color color) (var num value))

color.with_saturation

With saturation.

color.with_saturation(color: COLOR, saturation: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_saturation","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"saturation"}]}
Compact source
(call color color.with_saturation (var color color) (var num saturation))

color.with_value

With value.

color.with_value(color: COLOR, value: NUMBER) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"color.with_value","args":[{"kind":"VARIABLE","type":"COLOR","value":"color"},{"kind":"VARIABLE","type":"NUMBER","value":"value"}]}
Compact source
(call color color.with_value (var color color) (var num value))

Random number methods

Random number generators (rng.*). They use the game's synchronized random generator.

rng

Rng.

rng() → RNG

JSON
{"kind":"CALL","type":"RNG","value":"rng","args":[]}
Compact source
(call rng rng)

rng.between

Between.

rng.between(rng: RNG, min: NUMBER, max: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"rng.between","args":[{"kind":"VARIABLE","type":"RNG","value":"rng"},{"kind":"VARIABLE","type":"NUMBER","value":"min"},{"kind":"VARIABLE","type":"NUMBER","value":"max"}]}
Compact source
(call num rng.between (var rng rng) (var num min) (var num max))

rng.chance

Chance.

rng.chance(rng: RNG, chance: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"rng.chance","args":[{"kind":"VARIABLE","type":"RNG","value":"rng"},{"kind":"VARIABLE","type":"NUMBER","value":"chance"}]}
Compact source
(call bool rng.chance (var rng rng) (var num chance))

rng.gaussian

Bell curve.

rng.gaussian(rng: RNG, mean: NUMBER, deviation: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"rng.gaussian","args":[{"kind":"VARIABLE","type":"RNG","value":"rng"},{"kind":"VARIABLE","type":"NUMBER","value":"mean"},{"kind":"VARIABLE","type":"NUMBER","value":"deviation"}]}
Compact source
(call num rng.gaussian (var rng rng) (var num mean) (var num deviation))

rng.number

Random number.

rng.number(rng: RNG) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"rng.number","args":[{"kind":"VARIABLE","type":"RNG","value":"rng"}]}
Compact source
(call num rng.number (var rng rng))

rng.triangular

Triangular.

rng.triangular(rng: RNG, min: NUMBER, max: NUMBER, most_likely: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"rng.triangular","args":[{"kind":"VARIABLE","type":"RNG","value":"rng"},{"kind":"VARIABLE","type":"NUMBER","value":"min"},{"kind":"VARIABLE","type":"NUMBER","value":"max"},{"kind":"VARIABLE","type":"NUMBER","value":"most_likely"}]}
Compact source
(call num rng.triangular (var rng rng) (var num min) (var num max) (var num most_likely))

Registry methods

Reading registries, the saved key-value tables written with SET_REGISTRY (registry.*).

registry.boolean

Boolean.

registry.boolean(registry: REGISTRY, key: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"registry.boolean","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call bool registry.boolean (var registry registry) (var str key))

registry.color

Color.

registry.color(registry: REGISTRY, key: STRING) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"registry.color","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call color registry.color (var registry registry) (var str key))

registry.contains

Contains.

registry.contains(registry: REGISTRY, key: STRING, value: ANY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"registry.contains","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"},{"kind":"VARIABLE","type":"ANY","value":"value"}]}
Compact source
(call bool registry.contains (var registry registry) (var str key) (var any value))

registry.country

Country.

registry.country(registry: REGISTRY, key: STRING) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"registry.country","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call country registry.country (var registry registry) (var str key))

registry.get

Value.

registry.get(registry: REGISTRY, key: STRING) → ANY

JSON
{"kind":"CALL","type":"ANY","value":"registry.get","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call any registry.get (var registry registry) (var str key))

registry.has_key

Has key.

registry.has_key(registry: REGISTRY, key: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"registry.has_key","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call bool registry.has_key (var registry registry) (var str key))

registry.keys

Keys.

registry.keys(registry: REGISTRY) → LIST of STRING

JSON
{"kind":"CALL","type":"LIST","elementType":"STRING","value":"registry.keys","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"}]}
Compact source
(call list.string registry.keys (var registry registry))

registry.list

List.

registry.list(registry: REGISTRY, key: STRING) → LIST

JSON
{"kind":"CALL","type":"LIST","value":"registry.list","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call list registry.list (var registry registry) (var str key))

registry.number

Number.

registry.number(registry: REGISTRY, key: STRING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"registry.number","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call num registry.number (var registry registry) (var str key))

registry.point

Point.

registry.point(registry: REGISTRY, key: STRING) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"registry.point","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call point registry.point (var registry registry) (var str key))

registry.size

Size.

registry.size(registry: REGISTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"registry.size","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"}]}
Compact source
(call num registry.size (var registry registry))

registry.text

Text.

registry.text(registry: REGISTRY, key: STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"registry.text","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"},{"kind":"VARIABLE","type":"STRING","value":"key"}]}
Compact source
(call str registry.text (var registry registry) (var str key))

registry.values

Values.

registry.values(registry: REGISTRY) → LIST

JSON
{"kind":"CALL","type":"LIST","value":"registry.values","args":[{"kind":"VARIABLE","type":"REGISTRY","value":"registry"}]}
Compact source
(call list registry.values (var registry registry))

Country methods

Reading a country's data (country.*). Pass the country as the first argument.

country.ai

AI.

country.ai(country: COUNTRY) → COUNTRY_AI

JSON
{"kind":"CALL","type":"COUNTRY_AI","value":"country.ai","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country_ai country.ai (var country country))

country.allies

Allies.

country.allies(country: COUNTRY) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"country.allies","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.country country.allies (var country country))

country.area

Area.

country.area(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.area","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.area (var country country))

country.bonus

Bonus.

country.bonus(country: COUNTRY) → BONUS

JSON
{"kind":"CALL","type":"BONUS","value":"country.bonus","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bonus country.bonus (var country country))

country.border_count

Border count.

country.border_count(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.border_count","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.border_count (var country country))

country.border_size

Border size.

country.border_size(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.border_size","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.border_size (var country country))

country.border_size_with

Border size with.

country.border_size_with(country: COUNTRY, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.border_size_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num country.border_size_with (var country country) (var country other_country))

country.border_weight_with

Border weight with.

country.border_weight_with(country: COUNTRY, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.border_weight_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num country.border_weight_with (var country country) (var country other_country))

country.bordering_countries

Bordering countries.

country.bordering_countries(country: COUNTRY) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"country.bordering_countries","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.country country.bordering_countries (var country country))

country.budget

Budget.

country.budget(country: COUNTRY) → BUDGET

JSON
{"kind":"CALL","type":"BUDGET","value":"country.budget","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call budget country.budget (var country country))

country.calculations

Calculations.

country.calculations(country: COUNTRY) → COUNTRY_CALCULATIONS

JSON
{"kind":"CALL","type":"COUNTRY_CALCULATIONS","value":"country.calculations","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country_calculations country.calculations (var country country))

country.can_attack

Can attack.

country.can_attack(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.can_attack","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.can_attack (var country country) (var country other_country))

country.capital

Capital.

country.capital(country: COUNTRY) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"country.capital","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call point country.capital (var country country))

country.claims

Claims.

country.claims(country: COUNTRY) → COUNTRY_CLAIMS

JSON
{"kind":"CALL","type":"COUNTRY_CLAIMS","value":"country.claims","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country_claims country.claims (var country country))

country.coalition

Coalition.

country.coalition(country: COUNTRY) → COALITION

JSON
{"kind":"CALL","type":"COALITION","value":"country.coalition","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call coalition country.coalition (var country country))

country.code

Code.

country.code(country: COUNTRY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"country.code","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call str country.code (var country country))

country.color

Color.

country.color(country: COUNTRY) → COLOR

JSON
{"kind":"CALL","type":"COLOR","value":"country.color","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call color country.color (var country country))

country.controller

Controlling country. Internal: valid in scripts, but not offered by the editor.

country.controller(country: COUNTRY) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"country.controller","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country country.controller (var country country))

country.current_battles

Current battles.

country.current_battles(country: COUNTRY) → LIST of BATTLE

JSON
{"kind":"CALL","type":"LIST","elementType":"BATTLE","value":"country.current_battles","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.battle country.current_battles (var country country))

country.death_day

Death day.

country.death_day(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.death_day","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.death_day (var country country))

country.diplomacy

Diplomacy.

country.diplomacy(country: COUNTRY, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.diplomacy","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num country.diplomacy (var country country) (var country other_country))

country.diplomatic_exhaustion

Diplomatic exhaustion.

country.diplomatic_exhaustion(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.diplomatic_exhaustion","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.diplomatic_exhaustion (var country country))

country.disputed_points

Disputed points.

country.disputed_points(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.disputed_points","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.disputed_points (var country country))

country.enemies

Enemies.

country.enemies(country: COUNTRY) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"country.enemies","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.country country.enemies (var country country))

country.equal

Country equals (country == other_country).

country.equal(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.equal","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.equal (var country country) (var country other_country))

country.exists

Exists.

country.exists(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.exists","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.exists (var country country))

country.external_shares_sold_percent

External shares sold. Internal: valid in scripts, but not offered by the editor.

country.external_shares_sold_percent(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.external_shares_sold_percent","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.external_shares_sold_percent (var country country))

country.fertility

Fertility.

country.fertility(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.fertility","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.fertility (var country country))

country.feud

Feud.

country.feud(country: COUNTRY, target: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.feud","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"target"}]}
Compact source
(call num country.feud (var country country) (var country target))

country.freedom

Freedom.

country.freedom(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.freedom","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.freedom (var country country))

country.has_enemies

Has enemies.

country.has_enemies(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.has_enemies","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.has_enemies (var country country))

country.has_land_border_with

Has land border with.

country.has_land_border_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.has_land_border_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.has_land_border_with (var country country) (var country other_country))

country.has_ocean_border_with

Has ocean border with.

country.has_ocean_border_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.has_ocean_border_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.has_ocean_border_with (var country country) (var country other_country))

country.has_puppet

Has puppet.

country.has_puppet(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.has_puppet","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.has_puppet (var country country) (var country other_country))

country.ideology

Ideology.

country.ideology(country: COUNTRY) → COUNTRY_IDEOLOGY

JSON
{"kind":"CALL","type":"COUNTRY_IDEOLOGY","value":"country.ideology","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country_ideology country.ideology (var country country))

country.in_different_coalition

In different coalition.

country.in_different_coalition(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.in_different_coalition","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.in_different_coalition (var country country) (var country other_country))

country.in_rival_coalition

In rival coalition.

country.in_rival_coalition(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.in_rival_coalition","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.in_rival_coalition (var country country) (var country other_country))

country.index

Index.

country.index(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.index","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.index (var country country))

country.invasions

Invasions.

country.invasions(country: COUNTRY) → LIST of INVASION

JSON
{"kind":"CALL","type":"LIST","elementType":"INVASION","value":"country.invasions","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.invasion country.invasions (var country country))

country.is_aligned_with

Is aligned with.

country.is_aligned_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_aligned_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_aligned_with (var country country) (var country other_country))

country.is_alive

Is alive.

country.is_alive(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_alive","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_alive (var country country))

country.is_allied_with

Is allied with.

country.is_allied_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_allied_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_allied_with (var country country) (var country other_country))

country.is_any_player

Is online player.

country.is_any_player(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_any_player","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_any_player (var country country))

country.is_dead

Is dead.

country.is_dead(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_dead","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_dead (var country country))

country.is_friendly_with

Is friendly with.

country.is_friendly_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_friendly_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_friendly_with (var country country) (var country other_country))

country.is_hostile_with

Is hostile with.

country.is_hostile_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_hostile_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_hostile_with (var country country) (var country other_country))

country.is_invaded

Is invaded.

country.is_invaded(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_invaded","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_invaded (var country country))

country.is_invading

Is invading.

country.is_invading(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_invading","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_invading (var country country))

country.is_landlocked

Is landlocked.

country.is_landlocked(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_landlocked","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_landlocked (var country country))

country.is_neutral_with

Is neutral with.

country.is_neutral_with(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_neutral_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_neutral_with (var country country) (var country other_country))

country.is_null

Is none.

country.is_null(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_null (var country country))

country.is_online

Is online.

country.is_online(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_online","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_online (var country country))

country.is_player

Is the player. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

country.is_player(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_player","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_player (var country country))

country.is_puppet

Is puppet.

country.is_puppet(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_puppet","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_puppet (var country country))

country.is_puppet_of

Is puppet of.

country.is_puppet_of(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_puppet_of","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.is_puppet_of (var country country) (var country other_country))

country.is_synthetic

Is synthetic.

country.is_synthetic(country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.is_synthetic","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool country.is_synthetic (var country country))

country.leader

Leader.

country.leader(country: COUNTRY) → LEADER

JSON
{"kind":"CALL","type":"LEADER","value":"country.leader","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call leader country.leader (var country country))

country.master

Master.

country.master(country: COUNTRY) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"country.master","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country country.master (var country country))

country.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

country.name(country: COUNTRY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"country.name","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call str country.name (var country country))

country.next_leader

Next leader.

country.next_leader(country: COUNTRY) → LEADER

JSON
{"kind":"CALL","type":"LEADER","value":"country.next_leader","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call leader country.next_leader (var country country))

country.not_equal

Country not equals (country != other_country).

country.not_equal(country: COUNTRY, other_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call bool country.not_equal (var country country) (var country other_country))

country.ocean_border_count

Ocean border count.

country.ocean_border_count(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.ocean_border_count","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.ocean_border_count (var country country))

country.ocean_border_size

Ocean border size.

country.ocean_border_size(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.ocean_border_size","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.ocean_border_size (var country country))

country.ocean_border_size_at

Ocean border size at.

country.ocean_border_size_at(country: COUNTRY, ocean: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.ocean_border_size_at","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"NUMBER","value":"ocean"}]}
Compact source
(call num country.ocean_border_size_at (var country country) (var num ocean))

country.ocean_border_weight_with

Ocean border weight with.

country.ocean_border_weight_with(country: COUNTRY, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.ocean_border_weight_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num country.ocean_border_weight_with (var country country) (var country other_country))

country.ocean_borders

Ocean borders.

country.ocean_borders(country: COUNTRY) → LIST of NUMBER

JSON
{"kind":"CALL","type":"LIST","elementType":"NUMBER","value":"country.ocean_borders","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.number country.ocean_borders (var country country))

country.online_external_shareholders

Online external shareholders. Internal: valid in scripts, but not offered by the editor.

country.online_external_shareholders(country: COUNTRY) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"country.online_external_shareholders","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.country country.online_external_shareholders (var country country))

country.population

Population.

country.population(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.population","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.population (var country country))

country.progress

Progress.

country.progress(country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.progress","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num country.progress (var country country))

country.puppets

Puppets.

country.puppets(country: COUNTRY) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"country.puppets","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.country country.puppets (var country country))

country.rankings

Rankings.

country.rankings(country: COUNTRY) → COUNTRY_RANKINGS

JSON
{"kind":"CALL","type":"COUNTRY_RANKINGS","value":"country.rankings","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call country_rankings country.rankings (var country country))

country.shared_ocean_border_size_with

Shared ocean border size with.

country.shared_ocean_border_size_with(country: COUNTRY, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country.shared_ocean_border_size_with","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num country.shared_ocean_border_size_with (var country country) (var country other_country))

country.squads

Squads.

country.squads(country: COUNTRY) → LIST of SQUAD

JSON
{"kind":"CALL","type":"LIST","elementType":"SQUAD","value":"country.squads","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call list.squad country.squads (var country country))

country.territory_points

Territory points.

country.territory_points(country: COUNTRY) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"country.territory_points","args":[{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call points country.territory_points (var country country))

Country claims methods

Methods that read country claims values. Pass the object as the first argument.

claims.claim_point_count

Claim point count.

claims.claim_point_count(claims: COUNTRY_CLAIMS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"claims.claim_point_count","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call num claims.claim_point_count (var country_claims claims))

claims.claim_points

Claim points.

claims.claim_points(claims: COUNTRY_CLAIMS, target_country: COUNTRY) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"claims.claim_points","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"target_country"}]}
Compact source
(call points claims.claim_points (var country_claims claims) (var country target_country))

claims.claimer_point_count

Claimer point count.

claims.claimer_point_count(claims: COUNTRY_CLAIMS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"claims.claimer_point_count","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call num claims.claimer_point_count (var country_claims claims))

claims.claimer_points

Claimer points.

claims.claimer_points(claims: COUNTRY_CLAIMS, claimer: COUNTRY) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"claims.claimer_points","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"claimer"}]}
Compact source
(call points claims.claimer_points (var country_claims claims) (var country claimer))

claims.claimers

Claimers.

claims.claimers(claims: COUNTRY_CLAIMS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"claims.claimers","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call list.country claims.claimers (var country_claims claims))

claims.claims

Claims.

claims.claims(claims: COUNTRY_CLAIMS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"claims.claims","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call list.country claims.claims (var country_claims claims))

claims.has_claim_on

Has claim on.

claims.has_claim_on(claims: COUNTRY_CLAIMS, target_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_claim_on","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"target_country"}]}
Compact source
(call bool claims.has_claim_on (var country_claims claims) (var country target_country))

claims.has_claimers

Has claimers.

claims.has_claimers(claims: COUNTRY_CLAIMS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_claimers","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call bool claims.has_claimers (var country_claims claims))

claims.has_claims

Has claims.

claims.has_claims(claims: COUNTRY_CLAIMS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_claims","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call bool claims.has_claims (var country_claims claims))

claims.has_homeland

Has homeland.

claims.has_homeland(claims: COUNTRY_CLAIMS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_homeland","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call bool claims.has_homeland (var country_claims claims))

claims.has_homeland_on

Has homeland on.

claims.has_homeland_on(claims: COUNTRY_CLAIMS, target_country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_homeland_on","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"target_country"}]}
Compact source
(call bool claims.has_homeland_on (var country_claims claims) (var country target_country))

claims.has_homelander

Has homelander.

claims.has_homelander(claims: COUNTRY_CLAIMS, homelander: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_homelander","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"homelander"}]}
Compact source
(call bool claims.has_homelander (var country_claims claims) (var country homelander))

claims.has_homelanders

Has homelanders.

claims.has_homelanders(claims: COUNTRY_CLAIMS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.has_homelanders","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call bool claims.has_homelanders (var country_claims claims))

claims.homeland_point_count

Homeland point count.

claims.homeland_point_count(claims: COUNTRY_CLAIMS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"claims.homeland_point_count","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call num claims.homeland_point_count (var country_claims claims))

claims.homeland_points

Homeland points.

claims.homeland_points(claims: COUNTRY_CLAIMS, target_country: COUNTRY) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"claims.homeland_points","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"target_country"}]}
Compact source
(call points claims.homeland_points (var country_claims claims) (var country target_country))

claims.homelander_point_count

Homelander point count.

claims.homelander_point_count(claims: COUNTRY_CLAIMS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"claims.homelander_point_count","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call num claims.homelander_point_count (var country_claims claims))

claims.homelander_points

Homelander points.

claims.homelander_points(claims: COUNTRY_CLAIMS, homelander: COUNTRY) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"claims.homelander_points","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"homelander"}]}
Compact source
(call points claims.homelander_points (var country_claims claims) (var country homelander))

claims.homelanders

Homelanders.

claims.homelanders(claims: COUNTRY_CLAIMS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"claims.homelanders","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call list.country claims.homelanders (var country_claims claims))

claims.homelands

Homeland.

claims.homelands(claims: COUNTRY_CLAIMS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"claims.homelands","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"}]}
Compact source
(call list.country claims.homelands (var country_claims claims))

claims.is_claimed_by

Is claimed by.

claims.is_claimed_by(claims: COUNTRY_CLAIMS, claimer: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"claims.is_claimed_by","args":[{"kind":"VARIABLE","type":"COUNTRY_CLAIMS","value":"claims"},{"kind":"VARIABLE","type":"COUNTRY","value":"claimer"}]}
Compact source
(call bool claims.is_claimed_by (var country_claims claims) (var country claimer))

Country AI methods

Methods that read country ai values. Pass the object as the first argument.

ai.awake_day

Inactive until.

ai.awake_day(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.awake_day","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.awake_day (var country_ai AI))

ai.brain_index

Brain index.

ai.brain_index(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.brain_index","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.brain_index (var country_ai AI))

ai.brain_profile

Brain profile.

ai.brain_profile(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.brain_profile","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.brain_profile (var country_ai AI))

ai.brain_speed

Brain speed.

ai.brain_speed(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.brain_speed","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.brain_speed (var country_ai AI))

ai.can_attack

Can attack.

ai.can_attack(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.can_attack","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.can_attack (var country_ai AI))

ai.can_reclaim

Can reclaim.

ai.can_reclaim(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.can_reclaim","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.can_reclaim (var country_ai AI))

ai.custom_aggressivity

Custom aggressivity.

ai.custom_aggressivity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_aggressivity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_aggressivity (var country_ai AI))

ai.custom_austerity

Custom austerity.

ai.custom_austerity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_austerity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_austerity (var country_ai AI))

ai.custom_defensivity

Custom defensivity.

ai.custom_defensivity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_defensivity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_defensivity (var country_ai AI))

ai.custom_economic_development

Custom economic development.

ai.custom_economic_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_economic_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_economic_development (var country_ai AI))

ai.custom_fear

Custom fear.

ai.custom_fear(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_fear","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_fear (var country_ai AI))

ai.custom_military_development

Custom military development.

ai.custom_military_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_military_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_military_development (var country_ai AI))

ai.custom_path_strategy

Custom path strategy.

ai.custom_path_strategy(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_path_strategy","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_path_strategy (var country_ai AI))

ai.custom_public_relations

Custom public relations.

ai.custom_public_relations(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_public_relations","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_public_relations (var country_ai AI))

ai.custom_research_development

Custom research development.

ai.custom_research_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_research_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_research_development (var country_ai AI))

ai.custom_social_development

Custom social development.

ai.custom_social_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.custom_social_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.custom_social_development (var country_ai AI))

ai.equal

Country AI equals (AI == arg_1).

ai.equal(AI: COUNTRY_AI, arg_1: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"},{"kind":"VARIABLE","type":"COUNTRY_AI","value":"arg_1"}]}
Compact source
(call bool ai.equal (var country_ai AI) (var country_ai arg_1))

ai.exists

Country AI exists.

ai.exists(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.exists (var country_ai AI))

ai.feud

Feud.

ai.feud(AI: COUNTRY_AI, target: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.feud","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"},{"kind":"VARIABLE","type":"COUNTRY","value":"target"}]}
Compact source
(call num ai.feud (var country_ai AI) (var country target))

ai.high_feuds

High feuds.

ai.high_feuds(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.high_feuds","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.high_feuds (var country_ai AI))

ai.is_aggressive

Is aggressive.

ai.is_aggressive(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_aggressive","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_aggressive (var country_ai AI))

ai.is_awake

Is awake.

ai.is_awake(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_awake","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_awake (var country_ai AI))

ai.is_defensive

Is defensive.

ai.is_defensive(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_defensive","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_defensive (var country_ai AI))

ai.is_imperialist

Is imperialist.

ai.is_imperialist(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_imperialist","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_imperialist (var country_ai AI))

ai.is_null

Country AI is null.

ai.is_null(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_null (var country_ai AI))

ai.is_peaceful

Is peaceful.

ai.is_peaceful(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_peaceful","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_peaceful (var country_ai AI))

ai.is_player_ai

Is player AI.

ai.is_player_ai(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_player_ai","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_player_ai (var country_ai AI))

ai.is_player_ai_delay

Is player AI in delay.

ai.is_player_ai_delay(AI: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.is_player_ai_delay","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call bool ai.is_player_ai_delay (var country_ai AI))

ai.main_template

Main template.

ai.main_template(AI: COUNTRY_AI) → AI_TYPE

JSON
{"kind":"CALL","type":"AI_TYPE","value":"ai.main_template","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call ai_type ai.main_template (var country_ai AI))

ai.not_equal

Country AI not equals (AI != arg_1).

ai.not_equal(AI: COUNTRY_AI, arg_1: COUNTRY_AI) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"},{"kind":"VARIABLE","type":"COUNTRY_AI","value":"arg_1"}]}
Compact source
(call bool ai.not_equal (var country_ai AI) (var country_ai arg_1))

ai.owner

Owner.

ai.owner(AI: COUNTRY_AI) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"ai.owner","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call country ai.owner (var country_ai AI))

ai.personality_aggressivity

Aggressivity.

ai.personality_aggressivity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_aggressivity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_aggressivity (var country_ai AI))

ai.personality_austerity

Austerity.

ai.personality_austerity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_austerity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_austerity (var country_ai AI))

ai.personality_defensivity

Defensivity.

ai.personality_defensivity(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_defensivity","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_defensivity (var country_ai AI))

ai.personality_economic_development

Economic development.

ai.personality_economic_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_economic_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_economic_development (var country_ai AI))

ai.personality_fear

Fear.

ai.personality_fear(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_fear","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_fear (var country_ai AI))

ai.personality_military_development

Military development.

ai.personality_military_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_military_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_military_development (var country_ai AI))

ai.personality_path_strategy

Path strategy.

ai.personality_path_strategy(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_path_strategy","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_path_strategy (var country_ai AI))

ai.personality_public_relations

Public relations.

ai.personality_public_relations(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_public_relations","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_public_relations (var country_ai AI))

ai.personality_research_development

Research development.

ai.personality_research_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_research_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_research_development (var country_ai AI))

ai.personality_social_development

Social development.

ai.personality_social_development(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.personality_social_development","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.personality_social_development (var country_ai AI))

ai.template_aggressive

Aggressive template.

ai.template_aggressive(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.template_aggressive","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.template_aggressive (var country_ai AI))

ai.template_defensive

Defensive template.

ai.template_defensive(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.template_defensive","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.template_defensive (var country_ai AI))

ai.template_imperialist

Imperialist template.

ai.template_imperialist(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.template_imperialist","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.template_imperialist (var country_ai AI))

ai.template_peaceful

Peaceful template.

ai.template_peaceful(AI: COUNTRY_AI) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ai.template_peaceful","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call num ai.template_peaceful (var country_ai AI))

ai.type

Type.

ai.type(AI: COUNTRY_AI) → AI_TYPE

JSON
{"kind":"CALL","type":"AI_TYPE","value":"ai.type","args":[{"kind":"VARIABLE","type":"COUNTRY_AI","value":"AI"}]}
Compact source
(call ai_type ai.type (var country_ai AI))

ai_type.equal

Ai type equals (AI_type == arg_1).

ai_type.equal(AI_type: AI_TYPE, arg_1: AI_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai_type.equal","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"},{"kind":"VARIABLE","type":"AI_TYPE","value":"arg_1"}]}
Compact source
(call bool ai_type.equal (var ai_type AI_type) (var ai_type arg_1))

ai_type.exists

AI type exists.

ai_type.exists(AI_type: AI_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai_type.exists","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"}]}
Compact source
(call bool ai_type.exists (var ai_type AI_type))

ai_type.id

Id.

ai_type.id(AI_type: AI_TYPE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ai_type.id","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"}]}
Compact source
(call str ai_type.id (var ai_type AI_type))

ai_type.is_null

AI type is null.

ai_type.is_null(AI_type: AI_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai_type.is_null","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"}]}
Compact source
(call bool ai_type.is_null (var ai_type AI_type))

ai_type.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

ai_type.name(AI_type: AI_TYPE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ai_type.name","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"}]}
Compact source
(call str ai_type.name (var ai_type AI_type))

ai_type.not_equal

Ai type not equals (AI_type != arg_1).

ai_type.not_equal(AI_type: AI_TYPE, arg_1: AI_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ai_type.not_equal","args":[{"kind":"VARIABLE","type":"AI_TYPE","value":"AI_type"},{"kind":"VARIABLE","type":"AI_TYPE","value":"arg_1"}]}
Compact source
(call bool ai_type.not_equal (var ai_type AI_type) (var ai_type arg_1))

Budget methods

Methods that read budget values. Pass the object as the first argument.

budget.base_military_funding_percent

Base military funding percent.

budget.base_military_funding_percent(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.base_military_funding_percent","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.base_military_funding_percent (var budget budget))

budget.equal

Budget equals (budget == arg_1).

budget.equal(budget: BUDGET, arg_1: BUDGET) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"budget.equal","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"},{"kind":"VARIABLE","type":"BUDGET","value":"arg_1"}]}
Compact source
(call bool budget.equal (var budget budget) (var budget arg_1))

budget.exchange_rate

Exchange rate.

budget.exchange_rate(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.exchange_rate","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.exchange_rate (var budget budget))

budget.exists

Budget exists.

budget.exists(budget: BUDGET) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"budget.exists","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call bool budget.exists (var budget budget))

budget.expenditure

Expenditure.

budget.expenditure(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.expenditure","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.expenditure (var budget budget))

budget.expenditure_percent

Expenditure percent.

budget.expenditure_percent(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.expenditure_percent","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.expenditure_percent (var budget budget))

budget.gdp

GDP.

budget.gdp(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.gdp","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.gdp (var budget budget))

budget.gdp_growth

GDP growth.

budget.gdp_growth(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.gdp_growth","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.gdp_growth (var budget budget))

budget.gdp_per_capita

GDP per capita.

budget.gdp_per_capita(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.gdp_per_capita","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.gdp_per_capita (var budget budget))

budget.global_military_bonus

Global military bonus.

budget.global_military_bonus(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.global_military_bonus","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.global_military_bonus (var budget budget))

budget.immigration

Immigration.

budget.immigration(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.immigration","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.immigration (var budget budget))

budget.is_null

Budget is null.

budget.is_null(budget: BUDGET) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"budget.is_null","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call bool budget.is_null (var budget budget))

budget.liquidity_funding

Liquidity funding.

budget.liquidity_funding(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.liquidity_funding","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.liquidity_funding (var budget budget))

budget.liquidity_funding_target

Liquidity funding target.

budget.liquidity_funding_target(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.liquidity_funding_target","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.liquidity_funding_target (var budget budget))

budget.market_rate

Market rate.

budget.market_rate(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.market_rate","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.market_rate (var budget budget))

budget.military_bonus

Military bonus.

budget.military_bonus(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.military_bonus","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.military_bonus (var budget budget))

budget.military_funding

Military funding.

budget.military_funding(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.military_funding","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.military_funding (var budget budget))

budget.military_funding_target

Military funding target.

budget.military_funding_target(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.military_funding_target","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.military_funding_target (var budget budget))

budget.military_growth

Military growth.

budget.military_growth(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.military_growth","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.military_growth (var budget budget))

budget.military_rate

Military rate.

budget.military_rate(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.military_rate","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.military_rate (var budget budget))

budget.money

Money.

budget.money(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.money","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.money (var budget budget))

budget.money_growth

Annual money growth.

budget.money_growth(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.money_growth","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.money_growth (var budget budget))

budget.money_production

Annual money production.

budget.money_production(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.money_production","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.money_production (var budget budget))

budget.not_equal

Budget not equals (budget != arg_1).

budget.not_equal(budget: BUDGET, arg_1: BUDGET) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"budget.not_equal","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"},{"kind":"VARIABLE","type":"BUDGET","value":"arg_1"}]}
Compact source
(call bool budget.not_equal (var budget budget) (var budget arg_1))

budget.population

Population.

budget.population(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.population","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.population (var budget budget))

budget.population_growth

Population growth.

budget.population_growth(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.population_growth","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.population_growth (var budget budget))

budget.research_funding

Research funding.

budget.research_funding(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.research_funding","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.research_funding (var budget budget))

budget.research_funding_target

Research funding target.

budget.research_funding_target(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.research_funding_target","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.research_funding_target (var budget budget))

budget.research_growth

Annual research growth.

budget.research_growth(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.research_growth","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.research_growth (var budget budget))

budget.research_points

Research points.

budget.research_points(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.research_points","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.research_points (var budget budget))

budget.salary

Salary.

budget.salary(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.salary","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.salary (var budget budget))

budget.salary_rate

Salary rate.

budget.salary_rate(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.salary_rate","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.salary_rate (var budget budget))

budget.social_funding

Social funding.

budget.social_funding(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.social_funding","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.social_funding (var budget budget))

budget.social_funding_target

Social funding target.

budget.social_funding_target(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.social_funding_target","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.social_funding_target (var budget budget))

budget.target_expenditure

Target expenditure.

budget.target_expenditure(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.target_expenditure","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.target_expenditure (var budget budget))

budget.wealth_rate

Wealth rate.

budget.wealth_rate(budget: BUDGET) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"budget.wealth_rate","args":[{"kind":"VARIABLE","type":"BUDGET","value":"budget"}]}
Compact source
(call num budget.wealth_rate (var budget budget))

Country calculations methods

Methods that read country calculations values. Pass the object as the first argument.

calculations.active_military_ratio

Active military ratio.

calculations.active_military_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.active_military_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.active_military_ratio (var country_calculations calculations))

calculations.ally_ratio

Ally ratio.

calculations.ally_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.ally_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.ally_ratio (var country_calculations calculations))

calculations.claim

Claim deficit.

calculations.claim(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.claim","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.claim (var country_calculations calculations) (var country other_country))

calculations.claim_balance

Claim balance.

calculations.claim_balance(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.claim_balance","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.claim_balance (var country_calculations calculations) (var country other_country))

calculations.defense_balance

Defense balance.

calculations.defense_balance(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.defense_balance","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.defense_balance (var country_calculations calculations))

calculations.defense_balance_ratio

Defense balance ratio.

calculations.defense_balance_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.defense_balance_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.defense_balance_ratio (var country_calculations calculations))

calculations.defense_power

Defense power.

calculations.defense_power(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.defense_power","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.defense_power (var country_calculations calculations))

calculations.defense_power_ratio

Defense power ratio.

calculations.defense_power_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.defense_power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.defense_power_ratio (var country_calculations calculations))

calculations.defense_ratio

Defense ratio.

calculations.defense_ratio(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.defense_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.defense_ratio (var country_calculations calculations) (var country other_country))

calculations.diplomacy_rate

Diplomacy rate.

calculations.diplomacy_rate(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.diplomacy_rate","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.diplomacy_rate (var country_calculations calculations) (var country other_country))

calculations.diplomatic_balance

Diplomatic balance.

calculations.diplomatic_balance(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.diplomatic_balance","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.diplomatic_balance (var country_calculations calculations))

calculations.diplomatic_balance_ratio

Diplomatic balance ratio.

calculations.diplomatic_balance_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.diplomatic_balance_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.diplomatic_balance_ratio (var country_calculations calculations))

calculations.diplomatic_jeopardy

Diplomatic jeopardy.

calculations.diplomatic_jeopardy(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.diplomatic_jeopardy","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.diplomatic_jeopardy (var country_calculations calculations))

calculations.diplomatic_power_ratio

Diplomatic power ratio.

calculations.diplomatic_power_ratio(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.diplomatic_power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.diplomatic_power_ratio (var country_calculations calculations) (var country other_country))

calculations.dominance

Dominance.

calculations.dominance(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.dominance","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.dominance (var country_calculations calculations))

calculations.domination_deterrence

Domination deterrence.

calculations.domination_deterrence(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.domination_deterrence","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.domination_deterrence (var country_calculations calculations) (var country other_country))

calculations.domination_tolerance

Domination tolerance.

calculations.domination_tolerance(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.domination_tolerance","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.domination_tolerance (var country_calculations calculations))

calculations.economic_power_ratio

Economic power ratio.

calculations.economic_power_ratio(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.economic_power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.economic_power_ratio (var country_calculations calculations) (var country other_country))

calculations.enemy_power

Enemy power.

calculations.enemy_power(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.enemy_power","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.enemy_power (var country_calculations calculations))

calculations.equal

Calculations equals (calculations == arg_1).

calculations.equal(calculations: COUNTRY_CALCULATIONS, arg_1: COUNTRY_CALCULATIONS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"calculations.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"arg_1"}]}
Compact source
(call bool calculations.equal (var country_calculations calculations) (var country_calculations arg_1))

calculations.exists

Calculations exists.

calculations.exists(calculations: COUNTRY_CALCULATIONS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"calculations.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call bool calculations.exists (var country_calculations calculations))

calculations.fertility_rate

Fertility rate.

calculations.fertility_rate(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.fertility_rate","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.fertility_rate (var country_calculations calculations))

calculations.is_null

Calculations is null.

calculations.is_null(calculations: COUNTRY_CALCULATIONS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"calculations.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call bool calculations.is_null (var country_calculations calculations))

calculations.jeopardy

Jeopardy.

calculations.jeopardy(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.jeopardy","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.jeopardy (var country_calculations calculations))

calculations.military_overwhelm

Military overwhelm.

calculations.military_overwhelm(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.military_overwhelm","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.military_overwhelm (var country_calculations calculations) (var country other_country))

calculations.military_power

Military power.

calculations.military_power(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.military_power","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.military_power (var country_calculations calculations))

calculations.military_power_ratio

Military power ratio.

calculations.military_power_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.military_power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.military_power_ratio (var country_calculations calculations))

calculations.military_power_ratio_to

Military power ratio to.

calculations.military_power_ratio_to(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.military_power_ratio_to","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.military_power_ratio_to (var country_calculations calculations) (var country other_country))

calculations.money_rate

Money rate.

calculations.money_rate(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.money_rate","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.money_rate (var country_calculations calculations))

calculations.not_equal

Calculations not equals (calculations != arg_1).

calculations.not_equal(calculations: COUNTRY_CALCULATIONS, arg_1: COUNTRY_CALCULATIONS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"calculations.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"arg_1"}]}
Compact source
(call bool calculations.not_equal (var country_calculations calculations) (var country_calculations arg_1))

calculations.population_power_ratio

Population power ratio.

calculations.population_power_ratio(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.population_power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.population_power_ratio (var country_calculations calculations) (var country other_country))

calculations.power_ratio

Power ratio.

calculations.power_ratio(calculations: COUNTRY_CALCULATIONS, other_country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.power_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"},{"kind":"VARIABLE","type":"COUNTRY","value":"other_country"}]}
Compact source
(call num calculations.power_ratio (var country_calculations calculations) (var country other_country))

calculations.research_rate

Research rate.

calculations.research_rate(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.research_rate","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.research_rate (var country_calculations calculations))

calculations.self_defense_balance_ratio

Self defense balance ratio.

calculations.self_defense_balance_ratio(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.self_defense_balance_ratio","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.self_defense_balance_ratio (var country_calculations calculations))

calculations.self_defense_power

Self defense power.

calculations.self_defense_power(calculations: COUNTRY_CALCULATIONS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"calculations.self_defense_power","args":[{"kind":"VARIABLE","type":"COUNTRY_CALCULATIONS","value":"calculations"}]}
Compact source
(call num calculations.self_defense_power (var country_calculations calculations))

Rankings methods

Methods that read rankings values. Pass the object as the first argument.

country_rankings.area

Area.

country_rankings.area(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.area","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.area (var country_rankings rankings))

country_rankings.defense

Defense.

country_rankings.defense(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.defense","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.defense (var country_rankings rankings))

country_rankings.diplomacy

Diplomacy. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

country_rankings.diplomacy(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.diplomacy","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.diplomacy (var country_rankings rankings))

country_rankings.equal

Rankings equals (rankings == arg_1).

country_rankings.equal(rankings: COUNTRY_RANKINGS, arg_1: COUNTRY_RANKINGS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_rankings.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"},{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"arg_1"}]}
Compact source
(call bool country_rankings.equal (var country_rankings rankings) (var country_rankings arg_1))

country_rankings.exists

Rankings exists.

country_rankings.exists(rankings: COUNTRY_RANKINGS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_rankings.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call bool country_rankings.exists (var country_rankings rankings))

country_rankings.freedom

Freedom.

country_rankings.freedom(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.freedom","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.freedom (var country_rankings rankings))

country_rankings.gdp

GDP.

country_rankings.gdp(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.gdp","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.gdp (var country_rankings rankings))

country_rankings.gdp_growth

GDP growth.

country_rankings.gdp_growth(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.gdp_growth","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.gdp_growth (var country_rankings rankings))

country_rankings.gdp_per_capita

GDP per capita.

country_rankings.gdp_per_capita(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.gdp_per_capita","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.gdp_per_capita (var country_rankings rankings))

country_rankings.is_null

Rankings is null.

country_rankings.is_null(rankings: COUNTRY_RANKINGS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_rankings.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call bool country_rankings.is_null (var country_rankings rankings))

country_rankings.military

Military.

country_rankings.military(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.military","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.military (var country_rankings rankings))

country_rankings.money

Money.

country_rankings.money(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.money","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.money (var country_rankings rankings))

country_rankings.not_equal

Rankings not equals (rankings != arg_1).

country_rankings.not_equal(rankings: COUNTRY_RANKINGS, arg_1: COUNTRY_RANKINGS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_rankings.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"},{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"arg_1"}]}
Compact source
(call bool country_rankings.not_equal (var country_rankings rankings) (var country_rankings arg_1))

country_rankings.population

Population.

country_rankings.population(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.population","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.population (var country_rankings rankings))

country_rankings.population_growth

Population growth.

country_rankings.population_growth(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.population_growth","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.population_growth (var country_rankings rankings))

country_rankings.power

Power.

country_rankings.power(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.power","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.power (var country_rankings rankings))

country_rankings.progress

Progress.

country_rankings.progress(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.progress","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.progress (var country_rankings rankings))

country_rankings.self_defense

Self defense.

country_rankings.self_defense(rankings: COUNTRY_RANKINGS) → COUNTRY_RANKING

JSON
{"kind":"CALL","type":"COUNTRY_RANKING","value":"country_rankings.self_defense","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKINGS","value":"rankings"}]}
Compact source
(call country_ranking country_rankings.self_defense (var country_rankings rankings))

rankings.area

Area.

rankings.area(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.area","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.area (var rankings rankings))

rankings.defense

Defense.

rankings.defense(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.defense","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.defense (var rankings rankings))

rankings.diplomacy

Diplomacy. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

rankings.diplomacy(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.diplomacy","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.diplomacy (var rankings rankings))

rankings.freedom

Freedom.

rankings.freedom(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.freedom","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.freedom (var rankings rankings))

rankings.gdp

GDP.

rankings.gdp(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.gdp","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.gdp (var rankings rankings))

rankings.gdp_growth

GDP growth.

rankings.gdp_growth(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.gdp_growth","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.gdp_growth (var rankings rankings))

rankings.gdp_per_capita

GDP per capita.

rankings.gdp_per_capita(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.gdp_per_capita","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.gdp_per_capita (var rankings rankings))

rankings.military

Military.

rankings.military(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.military","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.military (var rankings rankings))

rankings.money

Money.

rankings.money(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.money","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.money (var rankings rankings))

rankings.population

Population.

rankings.population(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.population","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.population (var rankings rankings))

rankings.population_growth

Population growth.

rankings.population_growth(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.population_growth","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.population_growth (var rankings rankings))

rankings.power

Power.

rankings.power(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.power","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.power (var rankings rankings))

rankings.progress

Progress.

rankings.progress(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.progress","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.progress (var rankings rankings))

rankings.self_defense

Self defense.

rankings.self_defense(rankings: RANKINGS) → RANKING

JSON
{"kind":"CALL","type":"RANKING","value":"rankings.self_defense","args":[{"kind":"VARIABLE","type":"RANKINGS","value":"rankings"}]}
Compact source
(call ranking rankings.self_defense (var rankings rankings))

Ranking methods

Methods that read ranking values. Pass the object as the first argument.

country_ranking.equal

Ranking equals (ranking == arg_1).

country_ranking.equal(ranking: COUNTRY_RANKING, arg_1: COUNTRY_RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ranking.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"},{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"arg_1"}]}
Compact source
(call bool country_ranking.equal (var country_ranking ranking) (var country_ranking arg_1))

country_ranking.exists

Country ranking exists.

country_ranking.exists(ranking: COUNTRY_RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ranking.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"}]}
Compact source
(call bool country_ranking.exists (var country_ranking ranking))

country_ranking.is_null

Country ranking is null.

country_ranking.is_null(ranking: COUNTRY_RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ranking.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"}]}
Compact source
(call bool country_ranking.is_null (var country_ranking ranking))

country_ranking.not_equal

Ranking not equals (ranking != arg_1).

country_ranking.not_equal(ranking: COUNTRY_RANKING, arg_1: COUNTRY_RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_ranking.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"},{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"arg_1"}]}
Compact source
(call bool country_ranking.not_equal (var country_ranking ranking) (var country_ranking arg_1))

country_ranking.percent

Share.

country_ranking.percent(ranking: COUNTRY_RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_ranking.percent","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"}]}
Compact source
(call num country_ranking.percent (var country_ranking ranking))

country_ranking.rank

Rank.

country_ranking.rank(ranking: COUNTRY_RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_ranking.rank","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"}]}
Compact source
(call num country_ranking.rank (var country_ranking ranking))

country_ranking.value

Value.

country_ranking.value(ranking: COUNTRY_RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_ranking.value","args":[{"kind":"VARIABLE","type":"COUNTRY_RANKING","value":"ranking"}]}
Compact source
(call num country_ranking.value (var country_ranking ranking))

ranking.aggregate

Aggregate.

ranking.aggregate(ranking: RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.aggregate","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call num ranking.aggregate (var ranking ranking))

ranking.count

Country count.

ranking.count(ranking: RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.count","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call num ranking.count (var ranking ranking))

ranking.country_at_rank

Country at rank.

ranking.country_at_rank(ranking: RANKING, rank: NUMBER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"ranking.country_at_rank","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"NUMBER","value":"rank"}]}
Compact source
(call country ranking.country_at_rank (var ranking ranking) (var num rank))

ranking.equal

Ranking equals (ranking == arg_1).

ranking.equal(ranking: RANKING, arg_1: RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ranking.equal","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"RANKING","value":"arg_1"}]}
Compact source
(call bool ranking.equal (var ranking ranking) (var ranking arg_1))

ranking.exists

Ranking exists.

ranking.exists(ranking: RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ranking.exists","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call bool ranking.exists (var ranking ranking))

ranking.is_null

Ranking is null.

ranking.is_null(ranking: RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ranking.is_null","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call bool ranking.is_null (var ranking ranking))

ranking.mean

Mean.

ranking.mean(ranking: RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.mean","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call num ranking.mean (var ranking ranking))

ranking.median

Median.

ranking.median(ranking: RANKING) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.median","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call num ranking.median (var ranking ranking))

ranking.not_equal

Ranking not equals (ranking != arg_1).

ranking.not_equal(ranking: RANKING, arg_1: RANKING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ranking.not_equal","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"RANKING","value":"arg_1"}]}
Compact source
(call bool ranking.not_equal (var ranking ranking) (var ranking arg_1))

ranking.percent

Country share.

ranking.percent(ranking: RANKING, country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.percent","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num ranking.percent (var ranking ranking) (var country country))

ranking.rank

Country rank.

ranking.rank(ranking: RANKING, country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.rank","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num ranking.rank (var ranking ranking) (var country country))

ranking.top_country

Top country.

ranking.top_country(ranking: RANKING) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"ranking.top_country","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"}]}
Compact source
(call country ranking.top_country (var ranking ranking))

ranking.value

Country value.

ranking.value(ranking: RANKING, country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ranking.value","args":[{"kind":"VARIABLE","type":"RANKING","value":"ranking"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num ranking.value (var ranking ranking) (var country country))

Coalition methods

Methods that read coalition values. Pass the object as the first argument.

coalition.countries

Countries.

coalition.countries(coalition: COALITION) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"coalition.countries","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call list.country coalition.countries (var coalition coalition))

coalition.current_fortitude

Current fortitude.

coalition.current_fortitude(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.current_fortitude","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.current_fortitude (var coalition coalition))

coalition.equal

Coalition equals (coalition == arg_1).

coalition.equal(coalition: COALITION, arg_1: COALITION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"coalition.equal","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"},{"kind":"VARIABLE","type":"COALITION","value":"arg_1"}]}
Compact source
(call bool coalition.equal (var coalition coalition) (var coalition arg_1))

coalition.exists

Coalition exists.

coalition.exists(coalition: COALITION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"coalition.exists","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call bool coalition.exists (var coalition coalition))

coalition.fortitude

Fortitude.

coalition.fortitude(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.fortitude","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.fortitude (var coalition coalition))

coalition.gdp

GDP.

coalition.gdp(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.gdp","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.gdp (var coalition coalition))

coalition.is_null

Coalition is null.

coalition.is_null(coalition: COALITION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"coalition.is_null","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call bool coalition.is_null (var coalition coalition))

coalition.leader

Leader.

coalition.leader(coalition: COALITION) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"coalition.leader","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call country coalition.leader (var coalition coalition))

coalition.military_power

Military power.

coalition.military_power(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.military_power","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.military_power (var coalition coalition))

coalition.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

coalition.name(coalition: COALITION) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"coalition.name","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call str coalition.name (var coalition coalition))

coalition.not_equal

Coalition not equals (coalition != arg_1).

coalition.not_equal(coalition: COALITION, arg_1: COALITION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"coalition.not_equal","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"},{"kind":"VARIABLE","type":"COALITION","value":"arg_1"}]}
Compact source
(call bool coalition.not_equal (var coalition coalition) (var coalition arg_1))

coalition.percent

Share.

coalition.percent(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.percent","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.percent (var coalition coalition))

coalition.player_gdp

GDP (players).

coalition.player_gdp(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.player_gdp","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.player_gdp (var coalition coalition))

coalition.player_military_power

Military power (players).

coalition.player_military_power(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.player_military_power","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.player_military_power (var coalition coalition))

coalition.player_population

Population (players).

coalition.player_population(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.player_population","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.player_population (var coalition coalition))

coalition.player_production

Production (players).

coalition.player_production(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.player_production","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.player_production (var coalition coalition))

coalition.population

Population.

coalition.population(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.population","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.population (var coalition coalition))

coalition.production

Production.

coalition.production(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.production","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.production (var coalition coalition))

coalition.progress

Progress.

coalition.progress(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.progress","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.progress (var coalition coalition))

coalition.rival

Rival.

coalition.rival(coalition: COALITION) → COALITION

JSON
{"kind":"CALL","type":"COALITION","value":"coalition.rival","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call coalition coalition.rival (var coalition coalition))

coalition.weight

Weight.

coalition.weight(coalition: COALITION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"coalition.weight","args":[{"kind":"VARIABLE","type":"COALITION","value":"coalition"}]}
Compact source
(call num coalition.weight (var coalition coalition))

Map methods

Methods that read map values. Pass the object as the first argument.

map.battles

Battles.

map.battles(map: MAP) → LIST of BATTLE

JSON
{"kind":"CALL","type":"LIST","elementType":"BATTLE","value":"map.battles","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call list.battle map.battles (var map map))

map.continents

Continents.

map.continents(map: MAP) → MAP_CONTINENTS

JSON
{"kind":"CALL","type":"MAP_CONTINENTS","value":"map.continents","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call map_continents map.continents (var map map))

map.continents.africa

Africa.

map.continents.africa(map: MAP_CONTINENTS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.continents.africa","args":[{"kind":"VARIABLE","type":"MAP_CONTINENTS","value":"map"}]}
Compact source
(call list.country map.continents.africa (var map_continents map))

map.continents.america

America.

map.continents.america(map: MAP_CONTINENTS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.continents.america","args":[{"kind":"VARIABLE","type":"MAP_CONTINENTS","value":"map"}]}
Compact source
(call list.country map.continents.america (var map_continents map))

map.continents.asia

Asia.

map.continents.asia(map: MAP_CONTINENTS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.continents.asia","args":[{"kind":"VARIABLE","type":"MAP_CONTINENTS","value":"map"}]}
Compact source
(call list.country map.continents.asia (var map_continents map))

map.continents.europe

Europe.

map.continents.europe(map: MAP_CONTINENTS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.continents.europe","args":[{"kind":"VARIABLE","type":"MAP_CONTINENTS","value":"map"}]}
Compact source
(call list.country map.continents.europe (var map_continents map))

map.continents.oceania

Oceania.

map.continents.oceania(map: MAP_CONTINENTS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.continents.oceania","args":[{"kind":"VARIABLE","type":"MAP_CONTINENTS","value":"map"}]}
Compact source
(call list.country map.continents.oceania (var map_continents map))

map.hovered_country

Hovered country. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

map.hovered_country(map: MAP) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"map.hovered_country","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call country map.hovered_country (var map map))

map.invasions

Invasions.

map.invasions(map: MAP) → LIST of INVASION

JSON
{"kind":"CALL","type":"LIST","elementType":"INVASION","value":"map.invasions","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call list.invasion map.invasions (var map map))

map.point_economy

Economy.

map.point_economy(map: MAP, x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"map.point_economy","args":[{"kind":"VARIABLE","type":"MAP","value":"map"},{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num map.point_economy (var map map) (var num x) (var num y))

map.point_loyalty

Loyalty.

map.point_loyalty(map: MAP, x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"map.point_loyalty","args":[{"kind":"VARIABLE","type":"MAP","value":"map"},{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num map.point_loyalty (var map map) (var num x) (var num y))

map.point_owner

Owner.

map.point_owner(map: MAP, x: NUMBER, y: NUMBER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"map.point_owner","args":[{"kind":"VARIABLE","type":"MAP","value":"map"},{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call country map.point_owner (var map map) (var num x) (var num y))

map.point_population

Population.

map.point_population(map: MAP, x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"map.point_population","args":[{"kind":"VARIABLE","type":"MAP","value":"map"},{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num map.point_population (var map map) (var num x) (var num y))

map.regions

Regions.

map.regions(map: MAP) → MAP_REGIONS

JSON
{"kind":"CALL","type":"MAP_REGIONS","value":"map.regions","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call map_regions map.regions (var map map))

map.regions.east_asia__pacific

East Asia & Pacific.

map.regions.east_asia__pacific(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.east_asia__pacific","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.east_asia__pacific (var map_regions map))

map.regions.europe__central_asia

Europe & Central Asia.

map.regions.europe__central_asia(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.europe__central_asia","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.europe__central_asia (var map_regions map))

map.regions.latin_america__caribbean

Latin America & Caribbean.

map.regions.latin_america__caribbean(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.latin_america__caribbean","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.latin_america__caribbean (var map_regions map))

map.regions.middle_east__north_africa

Middle East & North Africa.

map.regions.middle_east__north_africa(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.middle_east__north_africa","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.middle_east__north_africa (var map_regions map))

map.regions.south_asia

South Asia.

map.regions.south_asia(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.south_asia","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.south_asia (var map_regions map))

map.regions.subsaharan_africa

Sub-Saharan Africa.

map.regions.subsaharan_africa(map: MAP_REGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.regions.subsaharan_africa","args":[{"kind":"VARIABLE","type":"MAP_REGIONS","value":"map"}]}
Compact source
(call list.country map.regions.subsaharan_africa (var map_regions map))

map.selected_country

Selected country. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

map.selected_country(map: MAP) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"map.selected_country","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call country map.selected_country (var map map))

map.subregions

Subregions.

map.subregions(map: MAP) → MAP_SUBREGIONS

JSON
{"kind":"CALL","type":"MAP_SUBREGIONS","value":"map.subregions","args":[{"kind":"VARIABLE","type":"MAP","value":"map"}]}
Compact source
(call map_subregions map.subregions (var map map))

map.subregions.australia_and_new_zealand

Australia and New Zealand.

map.subregions.australia_and_new_zealand(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.australia_and_new_zealand","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.australia_and_new_zealand (var map_subregions map))

map.subregions.caribbean

Caribbean.

map.subregions.caribbean(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.caribbean","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.caribbean (var map_subregions map))

map.subregions.central_america

Central America.

map.subregions.central_america(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.central_america","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.central_america (var map_subregions map))

map.subregions.central_asia

Central Asia.

map.subregions.central_asia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.central_asia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.central_asia (var map_subregions map))

map.subregions.eastern_africa

Eastern Africa.

map.subregions.eastern_africa(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.eastern_africa","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.eastern_africa (var map_subregions map))

map.subregions.eastern_asia

Eastern Asia.

map.subregions.eastern_asia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.eastern_asia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.eastern_asia (var map_subregions map))

map.subregions.eastern_europe

Eastern Europe.

map.subregions.eastern_europe(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.eastern_europe","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.eastern_europe (var map_subregions map))

map.subregions.melanesia

Melanesia.

map.subregions.melanesia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.melanesia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.melanesia (var map_subregions map))

map.subregions.micronesia

Micronesia.

map.subregions.micronesia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.micronesia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.micronesia (var map_subregions map))

map.subregions.middle_africa

Middle Africa.

map.subregions.middle_africa(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.middle_africa","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.middle_africa (var map_subregions map))

map.subregions.north_america

North America.

map.subregions.north_america(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.north_america","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.north_america (var map_subregions map))

map.subregions.northern_africa

Northern Africa.

map.subregions.northern_africa(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.northern_africa","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.northern_africa (var map_subregions map))

map.subregions.northern_europe

Northern Europe.

map.subregions.northern_europe(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.northern_europe","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.northern_europe (var map_subregions map))

map.subregions.polynesia

Polynesia.

map.subregions.polynesia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.polynesia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.polynesia (var map_subregions map))

map.subregions.south_america

South America.

map.subregions.south_america(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.south_america","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.south_america (var map_subregions map))

map.subregions.southeastern_asia

South-Eastern Asia.

map.subregions.southeastern_asia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.southeastern_asia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.southeastern_asia (var map_subregions map))

map.subregions.southern_africa

Southern Africa.

map.subregions.southern_africa(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.southern_africa","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.southern_africa (var map_subregions map))

map.subregions.southern_asia

Southern Asia.

map.subregions.southern_asia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.southern_asia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.southern_asia (var map_subregions map))

map.subregions.southern_europe

Southern Europe.

map.subregions.southern_europe(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.southern_europe","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.southern_europe (var map_subregions map))

map.subregions.western_africa

Western Africa.

map.subregions.western_africa(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.western_africa","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.western_africa (var map_subregions map))

map.subregions.western_asia

Western Asia.

map.subregions.western_asia(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.western_asia","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.western_asia (var map_subregions map))

map.subregions.western_europe

Western Europe.

map.subregions.western_europe(map: MAP_SUBREGIONS) → LIST of COUNTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY","value":"map.subregions.western_europe","args":[{"kind":"VARIABLE","type":"MAP_SUBREGIONS","value":"map"}]}
Compact source
(call list.country map.subregions.western_europe (var map_subregions map))

Squad methods

Methods that read squad values. Pass the object as the first argument.

squad.age

Age.

squad.age(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.age","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.age (var squad squad))

squad.attack

Attack.

squad.attack(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.attack","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.attack (var squad squad))

squad.base_attack

Base attack.

squad.base_attack(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.base_attack","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.base_attack (var squad squad))

squad.base_defense

Base defense.

squad.base_defense(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.base_defense","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.base_defense (var squad squad))

squad.base_piercing

Base piercing.

squad.base_piercing(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.base_piercing","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.base_piercing (var squad squad))

squad.base_power

Base power.

squad.base_power(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.base_power","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.base_power (var squad squad))

squad.battle_outcome_against

Battle outcome against.

squad.battle_outcome_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.battle_outcome_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.battle_outcome_against (var squad squad) (var squad other_squad))

squad.battle_with

Battle with.

squad.battle_with(squad: SQUAD, other_squad: SQUAD) → BATTLE

JSON
{"kind":"CALL","type":"BATTLE","value":"squad.battle_with","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call battle squad.battle_with (var squad squad) (var squad other_squad))

squad.battles

Battles.

squad.battles(squad: SQUAD) → LIST of BATTLE

JSON
{"kind":"CALL","type":"LIST","elementType":"BATTLE","value":"squad.battles","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call list.battle squad.battles (var squad squad))

squad.casualty_balance_against

Casualty balance against.

squad.casualty_balance_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.casualty_balance_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.casualty_balance_against (var squad squad) (var squad other_squad))

squad.combat_radius

Combat radius.

squad.combat_radius(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.combat_radius","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.combat_radius (var squad squad))

squad.combat_rate_against

Combat rate against.

squad.combat_rate_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.combat_rate_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.combat_rate_against (var squad squad) (var squad other_squad))

squad.creation_day

Creation day.

squad.creation_day(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.creation_day","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.creation_day (var squad squad))

squad.death_day

Death day.

squad.death_day(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.death_day","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.death_day (var squad squad))

squad.defense

Defense.

squad.defense(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.defense","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.defense (var squad squad))

squad.equal

Squad equals (squad == other_squad).

squad.equal(squad: SQUAD, other_squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.equal","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call bool squad.equal (var squad squad) (var squad other_squad))

squad.estimated_battle_duration_against

Estimated battle duration against.

squad.estimated_battle_duration_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.estimated_battle_duration_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.estimated_battle_duration_against (var squad squad) (var squad other_squad))

squad.estimated_casualties_against

Estimated casualties against.

squad.estimated_casualties_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.estimated_casualties_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.estimated_casualties_against (var squad squad) (var squad other_squad))

squad.estimated_casualty_percent_against

Estimated casualty percent against.

squad.estimated_casualty_percent_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.estimated_casualty_percent_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.estimated_casualty_percent_against (var squad squad) (var squad other_squad))

squad.estimated_enemy_casualties_against

Estimated enemy casualties against.

squad.estimated_enemy_casualties_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.estimated_enemy_casualties_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.estimated_enemy_casualties_against (var squad squad) (var squad other_squad))

squad.estimated_enemy_casualty_percent_against

Estimated enemy casualty percent against.

squad.estimated_enemy_casualty_percent_against(squad: SQUAD, other_squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.estimated_enemy_casualty_percent_against","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call num squad.estimated_enemy_casualty_percent_against (var squad squad) (var squad other_squad))

squad.exists

Squad exists.

squad.exists(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.exists","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.exists (var squad squad))

squad.has_effect

Has effect.

squad.has_effect(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.has_effect","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.has_effect (var squad squad))

squad.id

Id.

squad.id(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.id","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.id (var squad squad))

squad.invasion

Current invasion.

squad.invasion(squad: SQUAD) → INVASION

JSON
{"kind":"CALL","type":"INVASION","value":"squad.invasion","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call invasion squad.invasion (var squad squad))

squad.is_alive

Is alive.

squad.is_alive(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_alive","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_alive (var squad squad))

squad.is_battling

Is battling.

squad.is_battling(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_battling","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_battling (var squad squad))

squad.is_controllable

Is controllable.

squad.is_controllable(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_controllable","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_controllable (var squad squad))

squad.is_in_country

Is in country.

squad.is_in_country(squad: SQUAD, arg_1: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_in_country","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"COUNTRY","value":"arg_1"}]}
Compact source
(call bool squad.is_in_country (var squad squad) (var country arg_1))

squad.is_invading

Is invading.

squad.is_invading(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_invading","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_invading (var squad squad))

squad.is_militia

Is militia.

squad.is_militia(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_militia","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_militia (var squad squad))

squad.is_moving

Is moving.

squad.is_moving(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_moving","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_moving (var squad squad))

squad.is_null

Squad is null.

squad.is_null(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_null","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_null (var squad squad))

squad.is_reservist

Is reservist.

squad.is_reservist(squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.is_reservist","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool squad.is_reservist (var squad squad))

squad.location

Location.

squad.location(squad: SQUAD) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"squad.location","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call point squad.location (var squad squad))

squad.location_country

Location country.

squad.location_country(squad: SQUAD) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"squad.location_country","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call country squad.location_country (var squad squad))

squad.not_equal

Squad not equals (squad != other_squad).

squad.not_equal(squad: SQUAD, other_squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.not_equal","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call bool squad.not_equal (var squad squad) (var squad other_squad))

squad.owner

Owner.

squad.owner(squad: SQUAD) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"squad.owner","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call country squad.owner (var squad squad))

squad.personnel

Personnel.

squad.personnel(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.personnel","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.personnel (var squad squad))

squad.piercing

Piercing.

squad.piercing(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.piercing","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.piercing (var squad squad))

squad.power

Power.

squad.power(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.power","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.power (var squad squad))

squad.sees

Sees squad.

squad.sees(squad: SQUAD, other_squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad.sees","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"SQUAD","value":"other_squad"}]}
Compact source
(call bool squad.sees (var squad squad) (var squad other_squad))

squad.speed

Speed.

squad.speed(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.speed","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.speed (var squad squad))

squad.task

Task.

squad.task(squad: SQUAD) → SQUAD_TASK

JSON
{"kind":"CALL","type":"SQUAD_TASK","value":"squad.task","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call squad_task squad.task (var squad squad))

squad.troops

Troops.

squad.troops(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.troops","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.troops (var squad squad))

squad.type

Type.

squad.type(squad: SQUAD) → SQUAD_TYPE

JSON
{"kind":"CALL","type":"SQUAD_TYPE","value":"squad.type","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call squad_type squad.type (var squad squad))

squad.unit_attack

Attack.

squad.unit_attack(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_attack","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_attack (var squad squad) (var unit unit))

squad.unit_consumption

Unit consumption.

squad.unit_consumption(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_consumption","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_consumption (var squad squad) (var unit unit))

squad.unit_cost

Cost.

squad.unit_cost(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_cost","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_cost (var squad squad) (var unit unit))

squad.unit_defense

Defense.

squad.unit_defense(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_defense","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_defense (var squad squad) (var unit unit))

squad.unit_number

Number.

squad.unit_number(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_number","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_number (var squad squad) (var unit unit))

squad.unit_personnel

Personnel.

squad.unit_personnel(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_personnel","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_personnel (var squad squad) (var unit unit))

squad.unit_piercing

Piercing.

squad.unit_piercing(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_piercing","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_piercing (var squad squad) (var unit unit))

squad.unit_power

Power.

squad.unit_power(squad: SQUAD, unit: UNIT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.unit_power","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"},{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call num squad.unit_power (var squad squad) (var unit unit))

squad.weight

Weight.

squad.weight(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.weight","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.weight (var squad squad))

squad.x

X.

squad.x(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.x","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.x (var squad squad))

squad.y

Y.

squad.y(squad: SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"squad.y","args":[{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call num squad.y (var squad squad))

squad_task.equal

Squad task equals (left == right).

squad_task.equal(left: SQUAD_TASK, right: SQUAD_TASK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_task.equal","args":[{"kind":"VARIABLE","type":"SQUAD_TASK","value":"left"},{"kind":"VARIABLE","type":"SQUAD_TASK","value":"right"}]}
Compact source
(call bool squad_task.equal (var squad_task left) (var squad_task right))

squad_task.exists

Squad task exists.

squad_task.exists(value: SQUAD_TASK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_task.exists","args":[{"kind":"VARIABLE","type":"SQUAD_TASK","value":"value"}]}
Compact source
(call bool squad_task.exists (var squad_task value))

squad_task.is_null

Squad task is null.

squad_task.is_null(value: SQUAD_TASK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_task.is_null","args":[{"kind":"VARIABLE","type":"SQUAD_TASK","value":"value"}]}
Compact source
(call bool squad_task.is_null (var squad_task value))

squad_task.not_equal

Squad task not equals (left != right).

squad_task.not_equal(left: SQUAD_TASK, right: SQUAD_TASK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_task.not_equal","args":[{"kind":"VARIABLE","type":"SQUAD_TASK","value":"left"},{"kind":"VARIABLE","type":"SQUAD_TASK","value":"right"}]}
Compact source
(call bool squad_task.not_equal (var squad_task left) (var squad_task right))

squad_type.equal

Squad type equals (left == right).

squad_type.equal(left: SQUAD_TYPE, right: SQUAD_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_type.equal","args":[{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"left"},{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"right"}]}
Compact source
(call bool squad_type.equal (var squad_type left) (var squad_type right))

squad_type.exists

Squad type exists.

squad_type.exists(value: SQUAD_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_type.exists","args":[{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"value"}]}
Compact source
(call bool squad_type.exists (var squad_type value))

squad_type.is_null

Squad type is null.

squad_type.is_null(value: SQUAD_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_type.is_null","args":[{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"value"}]}
Compact source
(call bool squad_type.is_null (var squad_type value))

squad_type.not_equal

Squad type not equals (left != right).

squad_type.not_equal(left: SQUAD_TYPE, right: SQUAD_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"squad_type.not_equal","args":[{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"left"},{"kind":"VARIABLE","type":"SQUAD_TYPE","value":"right"}]}
Compact source
(call bool squad_type.not_equal (var squad_type left) (var squad_type right))

Point methods

Methods that read point values. Pass the object as the first argument.

point.area

Area.

point.area(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.area","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.area (var num x) (var num y))

point.area_at

Area.

point.area_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.area_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.area_at (var point point))

point.as_list

List.

point.as_list(point: POINT) → LIST of POINT

JSON
{"kind":"CALL","type":"LIST","elementType":"POINT","value":"point.as_list","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call points point.as_list (var point point))

point.claimer

Claimer.

point.claimer(x: NUMBER, y: NUMBER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.claimer","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call country point.claimer (var num x) (var num y))

point.claimer_at

Claimer.

point.claimer_at(point: POINT) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.claimer_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call country point.claimer_at (var point point))

point.distance_to

Distance to.

point.distance_to(point: POINT, other_point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.distance_to","args":[{"kind":"VARIABLE","type":"POINT","value":"point"},{"kind":"VARIABLE","type":"POINT","value":"other_point"}]}
Compact source
(call num point.distance_to (var point point) (var point other_point))

point.economy

Economy.

point.economy(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.economy","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.economy (var num x) (var num y))

point.economy_at

Economy.

point.economy_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.economy_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.economy_at (var point point))

point.elevation

Elevation.

point.elevation(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.elevation","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.elevation (var num x) (var num y))

point.elevation_at

Elevation.

point.elevation_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.elevation_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.elevation_at (var point point))

point.elevation_percent

Elevation percent.

point.elevation_percent(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.elevation_percent","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.elevation_percent (var num x) (var num y))

point.elevation_percent_at

Elevation percent.

point.elevation_percent_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.elevation_percent_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.elevation_percent_at (var point point))

point.equal

Point equals (point == other_point).

point.equal(point: POINT, other_point: POINT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"point.equal","args":[{"kind":"VARIABLE","type":"POINT","value":"point"},{"kind":"VARIABLE","type":"POINT","value":"other_point"}]}
Compact source
(call bool point.equal (var point point) (var point other_point))

point.exists

Point exists.

point.exists(point: POINT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"point.exists","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call bool point.exists (var point point))

point.fertility

Fertility.

point.fertility(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.fertility","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.fertility (var num x) (var num y))

point.fertility_at

Fertility.

point.fertility_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.fertility_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.fertility_at (var point point))

point.from_xy

Point.

point.from_xy(x: NUMBER, y: NUMBER) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"point.from_xy","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call point point.from_xy (var num x) (var num y))

point.homelander

Homelander.

point.homelander(x: NUMBER, y: NUMBER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.homelander","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call country point.homelander (var num x) (var num y))

point.homelander_at

Homelander.

point.homelander_at(point: POINT) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.homelander_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call country point.homelander_at (var point point))

point.is_null

Point is null.

point.is_null(point: POINT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"point.is_null","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call bool point.is_null (var point point))

point.land_cover

Land cover.

point.land_cover(x: NUMBER, y: NUMBER) → LAND_COVER

JSON
{"kind":"CALL","type":"LAND_COVER","value":"point.land_cover","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call land_cover point.land_cover (var num x) (var num y))

point.land_cover_at

Land cover.

point.land_cover_at(point: POINT) → LAND_COVER

JSON
{"kind":"CALL","type":"LAND_COVER","value":"point.land_cover_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call land_cover point.land_cover_at (var point point))

point.loyalty

Loyalty.

point.loyalty(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.loyalty","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.loyalty (var num x) (var num y))

point.loyalty_at

Loyalty.

point.loyalty_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.loyalty_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.loyalty_at (var point point))

point.manhattan_distance_to

Grid distance to.

point.manhattan_distance_to(point: POINT, other_point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.manhattan_distance_to","args":[{"kind":"VARIABLE","type":"POINT","value":"point"},{"kind":"VARIABLE","type":"POINT","value":"other_point"}]}
Compact source
(call num point.manhattan_distance_to (var point point) (var point other_point))

point.not_equal

Point not equals (point != other_point).

point.not_equal(point: POINT, other_point: POINT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"point.not_equal","args":[{"kind":"VARIABLE","type":"POINT","value":"point"},{"kind":"VARIABLE","type":"POINT","value":"other_point"}]}
Compact source
(call bool point.not_equal (var point point) (var point other_point))

point.ocean

Ocean.

point.ocean(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.ocean","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.ocean (var num x) (var num y))

point.ocean_at

Ocean.

point.ocean_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.ocean_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.ocean_at (var point point))

point.owner

Owner.

point.owner(x: NUMBER, y: NUMBER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.owner","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call country point.owner (var num x) (var num y))

point.owner_at

Owner.

point.owner_at(point: POINT) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"point.owner_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call country point.owner_at (var point point))

point.population

Population.

point.population(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.population","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.population (var num x) (var num y))

point.population_at

Population.

point.population_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.population_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.population_at (var point point))

point.slope

Slope.

point.slope(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.slope","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.slope (var num x) (var num y))

point.slope_at

Slope.

point.slope_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.slope_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.slope_at (var point point))

point.terrain

Terrain.

point.terrain(x: NUMBER, y: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.terrain","args":[{"kind":"VARIABLE","type":"NUMBER","value":"x"},{"kind":"VARIABLE","type":"NUMBER","value":"y"}]}
Compact source
(call num point.terrain (var num x) (var num y))

point.terrain_at

Terrain.

point.terrain_at(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.terrain_at","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.terrain_at (var point point))

point.translate

Translate.

point.translate(point: POINT, dx: NUMBER, dy: NUMBER) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"point.translate","args":[{"kind":"VARIABLE","type":"POINT","value":"point"},{"kind":"VARIABLE","type":"NUMBER","value":"dx"},{"kind":"VARIABLE","type":"NUMBER","value":"dy"}]}
Compact source
(call point point.translate (var point point) (var num dx) (var num dy))

point.x

X.

point.x(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.x","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.x (var point point))

point.y

Y.

point.y(point: POINT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"point.y","args":[{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call num point.y (var point point))

Land cover methods

Methods that read land cover values. Pass the object as the first argument.

land_cover.area_effect_cost

Area effect cost.

land_cover.area_effect_cost(land_cover: LAND_COVER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"land_cover.area_effect_cost","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call num land_cover.area_effect_cost (var land_cover land_cover))

land_cover.code

Code.

land_cover.code(land_cover: LAND_COVER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"land_cover.code","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call num land_cover.code (var land_cover land_cover))

land_cover.equal

Land cover equals (land_cover == other_land_cover).

land_cover.equal(land_cover: LAND_COVER, other_land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.equal","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"},{"kind":"VARIABLE","type":"LAND_COVER","value":"other_land_cover"}]}
Compact source
(call bool land_cover.equal (var land_cover land_cover) (var land_cover other_land_cover))

land_cover.exists

Land cover exists.

land_cover.exists(land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.exists","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call bool land_cover.exists (var land_cover land_cover))

land_cover.fertility

Fertility.

land_cover.fertility(land_cover: LAND_COVER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"land_cover.fertility","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call num land_cover.fertility (var land_cover land_cover))

land_cover.id

Id.

land_cover.id(land_cover: LAND_COVER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"land_cover.id","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call str land_cover.id (var land_cover land_cover))

land_cover.is_land

Is land.

land_cover.is_land(land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.is_land","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call bool land_cover.is_land (var land_cover land_cover))

land_cover.is_null

Land cover is null.

land_cover.is_null(land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.is_null","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call bool land_cover.is_null (var land_cover land_cover))

land_cover.is_water

Is water.

land_cover.is_water(land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.is_water","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call bool land_cover.is_water (var land_cover land_cover))

land_cover.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

land_cover.name(land_cover: LAND_COVER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"land_cover.name","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call str land_cover.name (var land_cover land_cover))

land_cover.not_equal

Land cover not equals (land_cover != other_land_cover).

land_cover.not_equal(land_cover: LAND_COVER, other_land_cover: LAND_COVER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"land_cover.not_equal","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"},{"kind":"VARIABLE","type":"LAND_COVER","value":"other_land_cover"}]}
Compact source
(call bool land_cover.not_equal (var land_cover land_cover) (var land_cover other_land_cover))

land_cover.travel_cost

Travel cost.

land_cover.travel_cost(land_cover: LAND_COVER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"land_cover.travel_cost","args":[{"kind":"VARIABLE","type":"LAND_COVER","value":"land_cover"}]}
Compact source
(call num land_cover.travel_cost (var land_cover land_cover))

Ideology methods

Methods that read ideology values. Pass the object as the first argument.

ideology.effect

Effect.

ideology.effect(ideology: COUNTRY_IDEOLOGY) → IDEOLOGY_EFFECT

JSON
{"kind":"CALL","type":"IDEOLOGY_EFFECT","value":"ideology.effect","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call ideology_effect ideology.effect (var country_ideology ideology))

ideology.equal

Ideology equals (ideology == arg_1).

ideology.equal(ideology: IDEOLOGY, arg_1: IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology.equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY","value":"ideology"},{"kind":"VARIABLE","type":"IDEOLOGY","value":"arg_1"}]}
Compact source
(call bool ideology.equal (var ideology ideology) (var ideology arg_1))

ideology.exists

Ideology exists.

ideology.exists(ideology: IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology.exists","args":[{"kind":"VARIABLE","type":"IDEOLOGY","value":"ideology"}]}
Compact source
(call bool ideology.exists (var ideology ideology))

ideology.freedom

Freedom.

ideology.freedom(ideology: COUNTRY_IDEOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology.freedom","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call num ideology.freedom (var country_ideology ideology))

ideology.id

Id.

ideology.id(ideology: COUNTRY_IDEOLOGY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology.id","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call str ideology.id (var country_ideology ideology))

ideology.is_active

Is active.

ideology.is_active(ideology: COUNTRY_IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology.is_active","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call bool ideology.is_active (var country_ideology ideology))

ideology.is_null

Ideology is null.

ideology.is_null(ideology: IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology.is_null","args":[{"kind":"VARIABLE","type":"IDEOLOGY","value":"ideology"}]}
Compact source
(call bool ideology.is_null (var ideology ideology))

ideology.leaders

Leaders.

ideology.leaders(ideology: COUNTRY_IDEOLOGY) → LIST of LEADER

JSON
{"kind":"CALL","type":"LIST","elementType":"LEADER","value":"ideology.leaders","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call list.leader ideology.leaders (var country_ideology ideology))

ideology.max_freedom

Max freedom.

ideology.max_freedom(ideology: COUNTRY_IDEOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology.max_freedom","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call num ideology.max_freedom (var country_ideology ideology))

ideology.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

ideology.name(ideology: COUNTRY_IDEOLOGY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology.name","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call str ideology.name (var country_ideology ideology))

ideology.not_equal

Ideology not equals (ideology != arg_1).

ideology.not_equal(ideology: IDEOLOGY, arg_1: IDEOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology.not_equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY","value":"ideology"},{"kind":"VARIABLE","type":"IDEOLOGY","value":"arg_1"}]}
Compact source
(call bool ideology.not_equal (var ideology ideology) (var ideology arg_1))

ideology.owner

Owner.

ideology.owner(ideology: COUNTRY_IDEOLOGY) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"ideology.owner","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call country ideology.owner (var country_ideology ideology))

ideology.perks

Perks.

ideology.perks(ideology: COUNTRY_IDEOLOGY) → LIST of IDEOLOGY_PERK

JSON
{"kind":"CALL","type":"LIST","elementType":"IDEOLOGY_PERK","value":"ideology.perks","args":[{"kind":"VARIABLE","type":"COUNTRY_IDEOLOGY","value":"ideology"}]}
Compact source
(call list.ideology_perk ideology.perks (var country_ideology ideology))

ideology_effect.bonuses

Bonuses.

ideology_effect.bonuses(effect: IDEOLOGY_EFFECT) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"ideology_effect.bonuses","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call list.bonus_entry ideology_effect.bonuses (var ideology_effect effect))

ideology_effect.equal

Ideology effect equals (effect == arg_1).

ideology_effect.equal(effect: IDEOLOGY_EFFECT, arg_1: IDEOLOGY_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_effect.equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"},{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"arg_1"}]}
Compact source
(call bool ideology_effect.equal (var ideology_effect effect) (var ideology_effect arg_1))

ideology_effect.exists

Ideology effect exists.

ideology_effect.exists(effect: IDEOLOGY_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_effect.exists","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call bool ideology_effect.exists (var ideology_effect effect))

ideology_effect.id

Id.

ideology_effect.id(effect: IDEOLOGY_EFFECT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology_effect.id","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call str ideology_effect.id (var ideology_effect effect))

ideology_effect.is_null

Ideology effect is null.

ideology_effect.is_null(effect: IDEOLOGY_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_effect.is_null","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call bool ideology_effect.is_null (var ideology_effect effect))

ideology_effect.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

ideology_effect.name(effect: IDEOLOGY_EFFECT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology_effect.name","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call str ideology_effect.name (var ideology_effect effect))

ideology_effect.not_equal

Ideology effect not equals (effect != arg_1).

ideology_effect.not_equal(effect: IDEOLOGY_EFFECT, arg_1: IDEOLOGY_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_effect.not_equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"},{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"arg_1"}]}
Compact source
(call bool ideology_effect.not_equal (var ideology_effect effect) (var ideology_effect arg_1))

ideology_effect.percent

Percent.

ideology_effect.percent(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.percent","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.percent (var ideology_effect effect))

ideology_effect.progress

Progress.

ideology_effect.progress(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.progress","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.progress (var ideology_effect effect))

ideology_effect.progress_percent

Progress percent.

ideology_effect.progress_percent(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.progress_percent","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.progress_percent (var ideology_effect effect))

ideology_effect.source

Source.

ideology_effect.source(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.source","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.source (var ideology_effect effect))

ideology_effect.target

Target.

ideology_effect.target(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.target","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.target (var ideology_effect effect))

ideology_effect.time

Time.

ideology_effect.time(effect: IDEOLOGY_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_effect.time","args":[{"kind":"VARIABLE","type":"IDEOLOGY_EFFECT","value":"effect"}]}
Compact source
(call num ideology_effect.time (var ideology_effect effect))

ideology_perk.bonuses

Bonuses.

ideology_perk.bonuses(perk: IDEOLOGY_PERK) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"ideology_perk.bonuses","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call list.bonus_entry ideology_perk.bonuses (var ideology_perk perk))

ideology_perk.cost

Freedom cost.

ideology_perk.cost(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.cost","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.cost (var ideology_perk perk))

ideology_perk.equal

Ideology perk equals (perk == arg_1).

ideology_perk.equal(perk: IDEOLOGY_PERK, arg_1: IDEOLOGY_PERK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_perk.equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"},{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"arg_1"}]}
Compact source
(call bool ideology_perk.equal (var ideology_perk perk) (var ideology_perk arg_1))

ideology_perk.exists

Ideology perk exists.

ideology_perk.exists(perk: IDEOLOGY_PERK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_perk.exists","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call bool ideology_perk.exists (var ideology_perk perk))

ideology_perk.id

Id.

ideology_perk.id(perk: IDEOLOGY_PERK) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology_perk.id","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call str ideology_perk.id (var ideology_perk perk))

ideology_perk.is_null

Ideology perk is null.

ideology_perk.is_null(perk: IDEOLOGY_PERK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_perk.is_null","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call bool ideology_perk.is_null (var ideology_perk perk))

ideology_perk.max_cost

Max freedom cost.

ideology_perk.max_cost(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.max_cost","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.max_cost (var ideology_perk perk))

ideology_perk.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

ideology_perk.name(perk: IDEOLOGY_PERK) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"ideology_perk.name","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call str ideology_perk.name (var ideology_perk perk))

ideology_perk.not_equal

Ideology perk not equals (perk != arg_1).

ideology_perk.not_equal(perk: IDEOLOGY_PERK, arg_1: IDEOLOGY_PERK) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_perk.not_equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"},{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"arg_1"}]}
Compact source
(call bool ideology_perk.not_equal (var ideology_perk perk) (var ideology_perk arg_1))

ideology_perk.percent

Percent.

ideology_perk.percent(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.percent","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.percent (var ideology_perk perk))

ideology_perk.progress

Progress.

ideology_perk.progress(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.progress","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.progress (var ideology_perk perk))

ideology_perk.progress_percent

Progress percent.

ideology_perk.progress_percent(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.progress_percent","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.progress_percent (var ideology_perk perk))

ideology_perk.source

Source.

ideology_perk.source(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.source","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.source (var ideology_perk perk))

ideology_perk.target

Target.

ideology_perk.target(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.target","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.target (var ideology_perk perk))

ideology_perk.time

Time.

ideology_perk.time(perk: IDEOLOGY_PERK) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_perk.time","args":[{"kind":"VARIABLE","type":"IDEOLOGY_PERK","value":"perk"}]}
Compact source
(call num ideology_perk.time (var ideology_perk perk))

Leader methods

Methods that read leader values. Pass the object as the first argument.

leader.bonuses

Bonuses.

leader.bonuses(leader: LEADER) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"leader.bonuses","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call list.bonus_entry leader.bonuses (var leader leader))

leader.current_age

Current age.

leader.current_age(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.current_age","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.current_age (var leader leader))

leader.current_experience

Current experience.

leader.current_experience(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.current_experience","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.current_experience (var leader leader))

leader.current_prime

Current potential.

leader.current_prime(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.current_prime","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.current_prime (var leader leader))

leader.current_skill

Current base skill.

leader.current_skill(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.current_skill","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.current_skill (var leader leader))

leader.equal

Leader equals (leader == arg_1).

leader.equal(leader: LEADER, arg_1: LEADER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"leader.equal","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"},{"kind":"VARIABLE","type":"LEADER","value":"arg_1"}]}
Compact source
(call bool leader.equal (var leader leader) (var leader arg_1))

leader.exists

Leader exists.

leader.exists(leader: LEADER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"leader.exists","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call bool leader.exists (var leader leader))

leader.id

Id.

leader.id(leader: LEADER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"leader.id","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call str leader.id (var leader leader))

leader.is_active

Is active.

leader.is_active(leader: LEADER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"leader.is_active","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call bool leader.is_active (var leader leader))

leader.is_null

Leader is null.

leader.is_null(leader: LEADER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"leader.is_null","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call bool leader.is_null (var leader leader))

leader.max_percent

Potential skill.

leader.max_percent(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.max_percent","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.max_percent (var leader leader))

leader.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

leader.name(leader: LEADER) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"leader.name","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call str leader.name (var leader leader))

leader.next_age

Next age.

leader.next_age(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.next_age","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.next_age (var leader leader))

leader.next_experience

Next experience.

leader.next_experience(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.next_experience","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.next_experience (var leader leader))

leader.next_prime

Next potential.

leader.next_prime(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.next_prime","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.next_prime (var leader leader))

leader.next_skill

Next base skill.

leader.next_skill(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.next_skill","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.next_skill (var leader leader))

leader.not_equal

Leader not equals (leader != arg_1).

leader.not_equal(leader: LEADER, arg_1: LEADER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"leader.not_equal","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"},{"kind":"VARIABLE","type":"LEADER","value":"arg_1"}]}
Compact source
(call bool leader.not_equal (var leader leader) (var leader arg_1))

leader.owner

Owner.

leader.owner(leader: LEADER) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"leader.owner","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call country leader.owner (var leader leader))

leader.percent

Current skill.

leader.percent(leader: LEADER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"leader.percent","args":[{"kind":"VARIABLE","type":"LEADER","value":"leader"}]}
Compact source
(call num leader.percent (var leader leader))

Technology methods

Methods that read technology values. Pass the object as the first argument.

tech_school.equal

Tech school equals (school == arg_1).

tech_school.equal(school: TECH_SCHOOL, arg_1: TECH_SCHOOL) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"tech_school.equal","args":[{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"school"},{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"arg_1"}]}
Compact source
(call bool tech_school.equal (var tech_school school) (var tech_school arg_1))

tech_school.exists

Tech school exists.

tech_school.exists(school: TECH_SCHOOL) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"tech_school.exists","args":[{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"school"}]}
Compact source
(call bool tech_school.exists (var tech_school school))

tech_school.is_null

Tech school is null.

tech_school.is_null(school: TECH_SCHOOL) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"tech_school.is_null","args":[{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"school"}]}
Compact source
(call bool tech_school.is_null (var tech_school school))

tech_school.not_equal

Tech school not equals (school != arg_1).

tech_school.not_equal(school: TECH_SCHOOL, arg_1: TECH_SCHOOL) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"tech_school.not_equal","args":[{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"school"},{"kind":"VARIABLE","type":"TECH_SCHOOL","value":"arg_1"}]}
Compact source
(call bool tech_school.not_equal (var tech_school school) (var tech_school arg_1))

technology.bonuses

Bonuses.

technology.bonuses(technology: TECHNOLOGY) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"technology.bonuses","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call list.bonus_entry technology.bonuses (var technology technology))

technology.can_reduce_cost

Cost can be reduced.

technology.can_reduce_cost(technology: TECHNOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.can_reduce_cost","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call bool technology.can_reduce_cost (var technology technology))

technology.cost

Cost.

technology.cost(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.cost","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.cost (var technology technology))

technology.description

Technology description.

technology.description(technology: TECHNOLOGY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"technology.description","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call str technology.description (var technology technology))

technology.equal

Technology equals (technology == arg_1).

technology.equal(technology: TECHNOLOGY, arg_1: TECHNOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.equal","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"},{"kind":"VARIABLE","type":"TECHNOLOGY","value":"arg_1"}]}
Compact source
(call bool technology.equal (var technology technology) (var technology arg_1))

technology.exists

Technology exists.

technology.exists(technology: TECHNOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.exists","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call bool technology.exists (var technology technology))

technology.id

Technology id.

technology.id(technology: TECHNOLOGY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"technology.id","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call str technology.id (var technology technology))

technology.index

Index.

technology.index(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.index","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.index (var technology technology))

technology.is_excluded_for

Excluded for country.

technology.is_excluded_for(technology: TECHNOLOGY, arg_1: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.is_excluded_for","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"},{"kind":"VARIABLE","type":"COUNTRY","value":"arg_1"}]}
Compact source
(call bool technology.is_excluded_for (var technology technology) (var country arg_1))

technology.is_null

Technology is null.

technology.is_null(technology: TECHNOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.is_null","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call bool technology.is_null (var technology technology))

technology.name

Technology name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

technology.name(technology: TECHNOLOGY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"technology.name","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call str technology.name (var technology technology))

technology.node

Node.

technology.node(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.node","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.node (var technology technology))

technology.not_equal

Technology not equals (technology != arg_1).

technology.not_equal(technology: TECHNOLOGY, arg_1: TECHNOLOGY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"technology.not_equal","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"},{"kind":"VARIABLE","type":"TECHNOLOGY","value":"arg_1"}]}
Compact source
(call bool technology.not_equal (var technology technology) (var technology arg_1))

technology.prerequisite

Prerequisite.

technology.prerequisite(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.prerequisite","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.prerequisite (var technology technology))

technology.ranks

Ranks.

technology.ranks(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.ranks","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.ranks (var technology technology))

technology.school

School.

technology.school(technology: TECHNOLOGY) → TECH_SCHOOL

JSON
{"kind":"CALL","type":"TECH_SCHOOL","value":"technology.school","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call tech_school technology.school (var technology technology))

technology.step

Step.

technology.step(technology: TECHNOLOGY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"technology.step","args":[{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call num technology.step (var technology technology))

Research methods

Methods that read research values. Pass the object as the first argument.

research.base_time

Base time.

research.base_time(research: RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"research.base_time","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call num research.base_time (var research research))

research.bonuses

Bonuses.

research.bonuses(research: RESEARCH) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"research.bonuses","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call list.bonus_entry research.bonuses (var research research))

research.cost

Cost.

research.cost(research: RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"research.cost","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call num research.cost (var research research))

research.description

Research description.

research.description(research: RESEARCH) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"research.description","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call str research.description (var research research))

research.equal

Research equals (research == arg_1).

research.equal(research: RESEARCH, arg_1: RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"research.equal","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"},{"kind":"VARIABLE","type":"RESEARCH","value":"arg_1"}]}
Compact source
(call bool research.equal (var research research) (var research arg_1))

research.exists

Research exists.

research.exists(research: RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"research.exists","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call bool research.exists (var research research))

research.id

Research id.

research.id(research: RESEARCH) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"research.id","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call str research.id (var research research))

research.index

Index.

research.index(research: RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"research.index","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call num research.index (var research research))

research.is_excluded_for

Excluded for country.

research.is_excluded_for(research: RESEARCH, arg_1: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"research.is_excluded_for","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"},{"kind":"VARIABLE","type":"COUNTRY","value":"arg_1"}]}
Compact source
(call bool research.is_excluded_for (var research research) (var country arg_1))

research.is_null

Research is null.

research.is_null(research: RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"research.is_null","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call bool research.is_null (var research research))

research.name

Research name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

research.name(research: RESEARCH) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"research.name","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call str research.name (var research research))

research.not_equal

Research not equals (research != arg_1).

research.not_equal(research: RESEARCH, arg_1: RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"research.not_equal","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"},{"kind":"VARIABLE","type":"RESEARCH","value":"arg_1"}]}
Compact source
(call bool research.not_equal (var research research) (var research arg_1))

research.prerequisite

Prerequisite.

research.prerequisite(research: RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"research.prerequisite","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call num research.prerequisite (var research research))

research.school

School.

research.school(research: RESEARCH) → TECH_SCHOOL

JSON
{"kind":"CALL","type":"TECH_SCHOOL","value":"research.school","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call tech_school research.school (var research research))

research.time

Time.

research.time(research: RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"research.time","args":[{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call num research.time (var research research))

Date methods

Methods that read date values. Pass the object as the first argument.

date.after

After.

date.after(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.after","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.after (var date date) (var date other_date))

date.before

Before.

date.before(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.before","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.before (var date date) (var date other_date))

date.between

Between.

date.between(date: DATE, other_date: DATE, arg_2: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.between","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"},{"kind":"VARIABLE","type":"DATE","value":"arg_2"}]}
Compact source
(call bool date.between (var date date) (var date other_date) (var date arg_2))

date.day

Day.

date.day(date: DATE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"date.day","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call num date.day (var date date))

date.day_of_year

Day of year.

date.day_of_year(date: DATE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"date.day_of_year","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call num date.day_of_year (var date date))

date.days_until

Days until.

date.days_until(date: DATE, other_date: DATE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"date.days_until","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call num date.days_until (var date date) (var date other_date))

date.equal

Date equals (date == other_date).

date.equal(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.equal","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.equal (var date date) (var date other_date))

date.exists

Date exists.

date.exists(date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.exists","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call bool date.exists (var date date))

date.format

Format. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

date.format(date: DATE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"date.format","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call str date.format (var date date))

date.is_null

Date is null.

date.is_null(date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.is_null","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call bool date.is_null (var date date))

date.month

Month.

date.month(date: DATE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"date.month","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call num date.month (var date date))

date.not_equal

Date not equals (date != other_date).

date.not_equal(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.not_equal","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.not_equal (var date date) (var date other_date))

date.on_or_after

On or after.

date.on_or_after(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.on_or_after","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.on_or_after (var date date) (var date other_date))

date.on_or_before

On or before.

date.on_or_before(date: DATE, other_date: DATE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.on_or_before","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"}]}
Compact source
(call bool date.on_or_before (var date date) (var date other_date))

date.plus_days

Plus days.

date.plus_days(date: DATE, arg_1: NUMBER) → DATE

JSON
{"kind":"CALL","type":"DATE","value":"date.plus_days","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"NUMBER","value":"arg_1"}]}
Compact source
(call date date.plus_days (var date date) (var num arg_1))

date.within_days

Within days.

date.within_days(date: DATE, other_date: DATE, days: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"date.within_days","args":[{"kind":"VARIABLE","type":"DATE","value":"date"},{"kind":"VARIABLE","type":"DATE","value":"other_date"},{"kind":"VARIABLE","type":"NUMBER","value":"days"}]}
Compact source
(call bool date.within_days (var date date) (var date other_date) (var num days))

date.year

Year.

date.year(date: DATE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"date.year","args":[{"kind":"VARIABLE","type":"DATE","value":"date"}]}
Compact source
(call num date.year (var date date))

Area effect methods

Methods that read aoe values. Pass the object as the first argument.

aoe.can_develop_for

Can develop for country.

aoe.can_develop_for(aoe: AOE, country: COUNTRY, percent: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.can_develop_for","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"},{"kind":"VARIABLE","type":"NUMBER","value":"percent"}]}
Compact source
(call bool aoe.can_develop_for (var aoe aoe) (var country country) (var num percent))

aoe.description

Aoe description.

aoe.description(aoe: AOE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"aoe.description","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call str aoe.description (var aoe aoe))

aoe.equal

Aoe equals (aoe == arg_1).

aoe.equal(aoe: AOE, arg_1: AOE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.equal","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"},{"kind":"VARIABLE","type":"AOE","value":"arg_1"}]}
Compact source
(call bool aoe.equal (var aoe aoe) (var aoe arg_1))

aoe.exists

Aoe exists.

aoe.exists(aoe: AOE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.exists","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call bool aoe.exists (var aoe aoe))

aoe.id

Aoe id.

aoe.id(aoe: AOE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"aoe.id","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call str aoe.id (var aoe aoe))

aoe.is_excluded_for

Excluded for country.

aoe.is_excluded_for(aoe: AOE, country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.is_excluded_for","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool aoe.is_excluded_for (var aoe aoe) (var country country))

aoe.is_null

Aoe is null.

aoe.is_null(aoe: AOE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.is_null","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call bool aoe.is_null (var aoe aoe))

aoe.max_economy

Max economy effect.

aoe.max_economy(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.max_economy","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.max_economy (var aoe aoe))

aoe.max_morale

Max morale effect.

aoe.max_morale(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.max_morale","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.max_morale (var aoe aoe))

aoe.max_population

Max population effect.

aoe.max_population(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.max_population","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.max_population (var aoe aoe))

aoe.max_radius

Max radius.

aoe.max_radius(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.max_radius","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.max_radius (var aoe aoe))

aoe.min_economy

Min economy effect.

aoe.min_economy(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.min_economy","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.min_economy (var aoe aoe))

aoe.min_morale

Min morale effect.

aoe.min_morale(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.min_morale","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.min_morale (var aoe aoe))

aoe.min_population

Min population effect.

aoe.min_population(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.min_population","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.min_population (var aoe aoe))

aoe.min_radius

Min radius.

aoe.min_radius(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.min_radius","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.min_radius (var aoe aoe))

aoe.money_cost

Money cost.

aoe.money_cost(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.money_cost","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.money_cost (var aoe aoe))

aoe.name

Aoe name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

aoe.name(aoe: AOE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"aoe.name","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call str aoe.name (var aoe aoe))

aoe.not_equal

Aoe not equals (aoe != arg_1).

aoe.not_equal(aoe: AOE, arg_1: AOE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe.not_equal","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"},{"kind":"VARIABLE","type":"AOE","value":"arg_1"}]}
Compact source
(call bool aoe.not_equal (var aoe aoe) (var aoe arg_1))

aoe.prerequisite

Prerequisite.

aoe.prerequisite(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.prerequisite","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.prerequisite (var aoe aoe))

aoe.ranks

Ranks.

aoe.ranks(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.ranks","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.ranks (var aoe aoe))

aoe.required_for

Required for country.

aoe.required_for(aoe: AOE, country: COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.required_for","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call num aoe.required_for (var aoe aoe) (var country country))

aoe.research_cost

Cost.

aoe.research_cost(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.research_cost","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.research_cost (var aoe aoe))

aoe.school

School.

aoe.school(aoe: AOE) → TECH_SCHOOL

JSON
{"kind":"CALL","type":"TECH_SCHOOL","value":"aoe.school","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call tech_school aoe.school (var aoe aoe))

aoe.step

Step.

aoe.step(aoe: AOE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"aoe.step","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call num aoe.step (var aoe aoe))

aoe.type

Type.

aoe.type(aoe: AOE) → AOE_TYPE

JSON
{"kind":"CALL","type":"AOE_TYPE","value":"aoe.type","args":[{"kind":"VARIABLE","type":"AOE","value":"aoe"}]}
Compact source
(call aoe_type aoe.type (var aoe aoe))

aoe_type.equal

Area effect type equals (area_effect_type == arg_1).

aoe_type.equal(area_effect_type: AOE_TYPE, arg_1: AOE_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe_type.equal","args":[{"kind":"VARIABLE","type":"AOE_TYPE","value":"area_effect_type"},{"kind":"VARIABLE","type":"AOE_TYPE","value":"arg_1"}]}
Compact source
(call bool aoe_type.equal (var aoe_type area_effect_type) (var aoe_type arg_1))

aoe_type.exists

Area effect type exists.

aoe_type.exists(area_effect_type: AOE_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe_type.exists","args":[{"kind":"VARIABLE","type":"AOE_TYPE","value":"area_effect_type"}]}
Compact source
(call bool aoe_type.exists (var aoe_type area_effect_type))

aoe_type.is_null

Area effect type is null.

aoe_type.is_null(area_effect_type: AOE_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe_type.is_null","args":[{"kind":"VARIABLE","type":"AOE_TYPE","value":"area_effect_type"}]}
Compact source
(call bool aoe_type.is_null (var aoe_type area_effect_type))

aoe_type.not_equal

Area effect type not equals (area_effect_type != arg_1).

aoe_type.not_equal(area_effect_type: AOE_TYPE, arg_1: AOE_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"aoe_type.not_equal","args":[{"kind":"VARIABLE","type":"AOE_TYPE","value":"area_effect_type"},{"kind":"VARIABLE","type":"AOE_TYPE","value":"arg_1"}]}
Compact source
(call bool aoe_type.not_equal (var aoe_type area_effect_type) (var aoe_type arg_1))

Bonus methods

Methods that read bonus values. Pass the object as the first argument.

bonus.ammunition_shortage

Ammunition shortage.

bonus.ammunition_shortage(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.ammunition_shortage","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.ammunition_shortage (var bonus bonus))

bonus.bonuses

Bonuses.

bonus.bonuses(bonus: BONUS) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"bonus.bonuses","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call list.bonus_entry bonus.bonuses (var bonus bonus))

bonus.buff

Bonus.

bonus.buff(bonus: BONUS, bonus_type: BONUS_TYPE) → BONUS_ENTRY

JSON
{"kind":"CALL","type":"BONUS_ENTRY","value":"bonus.buff","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"bonus_type"}]}
Compact source
(call bonus_entry bonus.buff (var bonus bonus) (var bonus_type bonus_type))

bonus.by_type

By type.

bonus.by_type(bonus: BONUS, bonus_type: BONUS_TYPE) → BONUS_ENTRY

JSON
{"kind":"CALL","type":"BONUS_ENTRY","value":"bonus.by_type","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"bonus_type"}]}
Compact source
(call bonus_entry bonus.by_type (var bonus bonus) (var bonus_type bonus_type))

bonus.combat_experience

Combat experience.

bonus.combat_experience(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.combat_experience","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.combat_experience (var bonus bonus))

bonus.effect_type_value

Effect type value.

bonus.effect_type_value(bonus: BONUS, effect_type: CUSTOM_EFFECT) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.effect_type_value","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call num bonus.effect_type_value (var bonus bonus) (var effect effect_type))

bonus.effects

Effects.

bonus.effects(bonus: BONUS) → LIST of CUSTOM_EFFECT_INSTANCE

JSON
{"kind":"CALL","type":"LIST","elementType":"CUSTOM_EFFECT_INSTANCE","value":"bonus.effects","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call list.custom_effect_instance bonus.effects (var bonus bonus))

bonus.equal

Bonus equals (bonus == arg_1).

bonus.equal(bonus: BONUS, arg_1: BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus.equal","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS","value":"arg_1"}]}
Compact source
(call bool bonus.equal (var bonus bonus) (var bonus arg_1))

bonus.exists

Bonus exists.

bonus.exists(bonus: BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus.exists","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call bool bonus.exists (var bonus bonus))

bonus.international_standing

International standing.

bonus.international_standing(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.international_standing","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.international_standing (var bonus bonus))

bonus.is_null

Bonus is null.

bonus.is_null(bonus: BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus.is_null","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call bool bonus.is_null (var bonus bonus))

bonus.morale

Morale.

bonus.morale(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.morale","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.morale (var bonus bonus))

bonus.multiplier

Multiplier.

bonus.multiplier(bonus: BONUS, bonus_type: BONUS_TYPE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.multiplier","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"bonus_type"}]}
Compact source
(call num bonus.multiplier (var bonus bonus) (var bonus_type bonus_type))

bonus.not_equal

Bonus not equals (bonus != arg_1).

bonus.not_equal(bonus: BONUS, arg_1: BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus.not_equal","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS","value":"arg_1"}]}
Compact source
(call bool bonus.not_equal (var bonus bonus) (var bonus arg_1))

bonus.owner

Owner.

bonus.owner(bonus: BONUS) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"bonus.owner","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call country bonus.owner (var bonus bonus))

bonus.research

Research.

bonus.research(bonus: BONUS, research: RESEARCH) → COUNTRY_RESEARCH

JSON
{"kind":"CALL","type":"COUNTRY_RESEARCH","value":"bonus.research","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"RESEARCH","value":"research"}]}
Compact source
(call country_research bonus.research (var bonus bonus) (var research research))

bonus.research_current

Research current.

bonus.research_current(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.research_current","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.research_current (var bonus bonus))

bonus.research_progress

Research progress.

bonus.research_progress(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.research_progress","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.research_progress (var bonus bonus))

bonus.research_total

Research total.

bonus.research_total(bonus: BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.research_total","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call num bonus.research_total (var bonus bonus))

bonus.researchs

Research.

bonus.researchs(bonus: BONUS) → LIST of COUNTRY_RESEARCH

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY_RESEARCH","value":"bonus.researchs","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call list.country_research bonus.researchs (var bonus bonus))

bonus.technologies

Technologies.

bonus.technologies(bonus: BONUS) → LIST of COUNTRY_TECH

JSON
{"kind":"CALL","type":"LIST","elementType":"COUNTRY_TECH","value":"bonus.technologies","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"}]}
Compact source
(call list.country_tech bonus.technologies (var bonus bonus))

bonus.technology

Technology.

bonus.technology(bonus: BONUS, technology: TECHNOLOGY) → COUNTRY_TECH

JSON
{"kind":"CALL","type":"COUNTRY_TECH","value":"bonus.technology","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"TECHNOLOGY","value":"technology"}]}
Compact source
(call country_tech bonus.technology (var bonus bonus) (var technology technology))

bonus.value

Value.

bonus.value(bonus: BONUS, bonus_type: BONUS_TYPE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus.value","args":[{"kind":"VARIABLE","type":"BONUS","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"bonus_type"}]}
Compact source
(call num bonus.value (var bonus bonus) (var bonus_type bonus_type))

bonus_entry.base_value

Base value.

bonus_entry.base_value(bonus: BONUS_ENTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus_entry.base_value","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call num bonus_entry.base_value (var bonus_entry bonus))

bonus_entry.equal

Bonus equals (bonus == arg_1).

bonus_entry.equal(bonus: BONUS_ENTRY, arg_1: BONUS_ENTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_entry.equal","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"arg_1"}]}
Compact source
(call bool bonus_entry.equal (var bonus_entry bonus) (var bonus_entry arg_1))

bonus_entry.exists

Bonus exists.

bonus_entry.exists(bonus: BONUS_ENTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_entry.exists","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call bool bonus_entry.exists (var bonus_entry bonus))

bonus_entry.is_enabled

Enabled.

bonus_entry.is_enabled(bonus: BONUS_ENTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_entry.is_enabled","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call bool bonus_entry.is_enabled (var bonus_entry bonus))

bonus_entry.is_null

Bonus is null.

bonus_entry.is_null(bonus: BONUS_ENTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_entry.is_null","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call bool bonus_entry.is_null (var bonus_entry bonus))

bonus_entry.max_value

Max value.

bonus_entry.max_value(bonus: BONUS_ENTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus_entry.max_value","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call num bonus_entry.max_value (var bonus_entry bonus))

bonus_entry.multiplier

Multiplier.

bonus_entry.multiplier(bonus: BONUS_ENTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus_entry.multiplier","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call num bonus_entry.multiplier (var bonus_entry bonus))

bonus_entry.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

bonus_entry.name(bonus: BONUS_ENTRY) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"bonus_entry.name","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call str bonus_entry.name (var bonus_entry bonus))

bonus_entry.not_equal

Bonus not equals (bonus != arg_1).

bonus_entry.not_equal(bonus: BONUS_ENTRY, arg_1: BONUS_ENTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_entry.not_equal","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"},{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"arg_1"}]}
Compact source
(call bool bonus_entry.not_equal (var bonus_entry bonus) (var bonus_entry arg_1))

bonus_entry.owner

Owner.

bonus_entry.owner(bonus: BONUS_ENTRY) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"bonus_entry.owner","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call country bonus_entry.owner (var bonus_entry bonus))

bonus_entry.type

Type.

bonus_entry.type(bonus: BONUS_ENTRY) → BONUS_TYPE

JSON
{"kind":"CALL","type":"BONUS_TYPE","value":"bonus_entry.type","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call bonus_type bonus_entry.type (var bonus_entry bonus))

bonus_entry.value

Value.

bonus_entry.value(bonus: BONUS_ENTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"bonus_entry.value","args":[{"kind":"VARIABLE","type":"BONUS_ENTRY","value":"bonus"}]}
Compact source
(call num bonus_entry.value (var bonus_entry bonus))

bonus_type.equal

Bonus type equals (left == right).

bonus_type.equal(left: BONUS_TYPE, right: BONUS_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_type.equal","args":[{"kind":"VARIABLE","type":"BONUS_TYPE","value":"left"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"right"}]}
Compact source
(call bool bonus_type.equal (var bonus_type left) (var bonus_type right))

bonus_type.exists

Bonus type exists.

bonus_type.exists(value: BONUS_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_type.exists","args":[{"kind":"VARIABLE","type":"BONUS_TYPE","value":"value"}]}
Compact source
(call bool bonus_type.exists (var bonus_type value))

bonus_type.is_null

Bonus type is null.

bonus_type.is_null(value: BONUS_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_type.is_null","args":[{"kind":"VARIABLE","type":"BONUS_TYPE","value":"value"}]}
Compact source
(call bool bonus_type.is_null (var bonus_type value))

bonus_type.not_equal

Bonus type not equals (left != right).

bonus_type.not_equal(left: BONUS_TYPE, right: BONUS_TYPE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"bonus_type.not_equal","args":[{"kind":"VARIABLE","type":"BONUS_TYPE","value":"left"},{"kind":"VARIABLE","type":"BONUS_TYPE","value":"right"}]}
Compact source
(call bool bonus_type.not_equal (var bonus_type left) (var bonus_type right))

effect.active

Active.

effect.active(effect: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.active","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call bool effect.active (var effect_instance effect))

effect.bidirectional

Bidirectional.

effect.bidirectional(effect: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.bidirectional","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call bool effect.bidirectional (var effect_instance effect))

effect.bonuses

Bonuses.

effect.bonuses(effect: CUSTOM_EFFECT_INSTANCE) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"effect.bonuses","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call list.bonus_entry effect.bonuses (var effect_instance effect))

effect.current

Current.

effect.current(effect: CUSTOM_EFFECT_INSTANCE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"effect.current","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call num effect.current (var effect_instance effect))

effect.equal

Effect equals (effect == arg_1).

effect.equal(effect: CUSTOM_EFFECT_INSTANCE, arg_1: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.equal","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"},{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"arg_1"}]}
Compact source
(call bool effect.equal (var effect_instance effect) (var effect_instance arg_1))

effect.exists

Effect exists.

effect.exists(effect: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.exists","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call bool effect.exists (var effect_instance effect))

effect.id

Id.

effect.id(effect: CUSTOM_EFFECT_INSTANCE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"effect.id","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call str effect.id (var effect_instance effect))

effect.is_null

Effect is null.

effect.is_null(effect: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.is_null","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call bool effect.is_null (var effect_instance effect))

effect.max

Max.

effect.max(effect: CUSTOM_EFFECT_INSTANCE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"effect.max","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call num effect.max (var effect_instance effect))

effect.min

Min.

effect.min(effect: CUSTOM_EFFECT_INSTANCE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"effect.min","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call num effect.min (var effect_instance effect))

effect.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

effect.name(effect: CUSTOM_EFFECT_INSTANCE) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"effect.name","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call str effect.name (var effect_instance effect))

effect.not_equal

Effect not equals (effect != arg_1).

effect.not_equal(effect: CUSTOM_EFFECT_INSTANCE, arg_1: CUSTOM_EFFECT_INSTANCE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect.not_equal","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"},{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"arg_1"}]}
Compact source
(call bool effect.not_equal (var effect_instance effect) (var effect_instance arg_1))

effect.owner

Owner.

effect.owner(effect: CUSTOM_EFFECT_INSTANCE) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"effect.owner","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call country effect.owner (var effect_instance effect))

effect.percent

Percent.

effect.percent(effect: CUSTOM_EFFECT_INSTANCE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"effect.percent","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call num effect.percent (var effect_instance effect))

effect.type

Type.

effect.type(effect: CUSTOM_EFFECT_INSTANCE) → CUSTOM_EFFECT

JSON
{"kind":"CALL","type":"CUSTOM_EFFECT","value":"effect.type","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call effect effect.type (var effect_instance effect))

effect.value

Value.

effect.value(effect: CUSTOM_EFFECT_INSTANCE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"effect.value","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT_INSTANCE","value":"effect"}]}
Compact source
(call num effect.value (var effect_instance effect))

effect_type.description

Description.

effect_type.description(effect_type: CUSTOM_EFFECT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"effect_type.description","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call str effect_type.description (var effect effect_type))

effect_type.equal

Effect type equals (effect_type == arg_1).

effect_type.equal(effect_type: CUSTOM_EFFECT, arg_1: CUSTOM_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect_type.equal","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"},{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"arg_1"}]}
Compact source
(call bool effect_type.equal (var effect effect_type) (var effect arg_1))

effect_type.exists

Effect type exists.

effect_type.exists(effect_type: CUSTOM_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect_type.exists","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call bool effect_type.exists (var effect effect_type))

effect_type.id

Id.

effect_type.id(effect_type: CUSTOM_EFFECT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"effect_type.id","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call str effect_type.id (var effect effect_type))

effect_type.is_null

Effect type is null.

effect_type.is_null(effect_type: CUSTOM_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect_type.is_null","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call bool effect_type.is_null (var effect effect_type))

effect_type.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

effect_type.name(effect_type: CUSTOM_EFFECT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"effect_type.name","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"}]}
Compact source
(call str effect_type.name (var effect effect_type))

effect_type.not_equal

Effect type not equals (effect_type != arg_1).

effect_type.not_equal(effect_type: CUSTOM_EFFECT, arg_1: CUSTOM_EFFECT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"effect_type.not_equal","args":[{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"effect_type"},{"kind":"VARIABLE","type":"CUSTOM_EFFECT","value":"arg_1"}]}
Compact source
(call bool effect_type.not_equal (var effect effect_type) (var effect arg_1))

Bonus entry methods

Methods that read type bonus values. Pass the object as the first argument.

country_bonus.equal

Bonus equals (bonus == arg_1).

country_bonus.equal(bonus: COUNTRY_BONUS, arg_1: COUNTRY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_bonus.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"arg_1"}]}
Compact source
(call bool country_bonus.equal (var country_bonus bonus) (var country_bonus arg_1))

country_bonus.exists

Country bonus exists.

country_bonus.exists(bonus: COUNTRY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_bonus.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call bool country_bonus.exists (var country_bonus bonus))

country_bonus.is_enabled

Enabled.

country_bonus.is_enabled(bonus: COUNTRY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_bonus.is_enabled","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call bool country_bonus.is_enabled (var country_bonus bonus))

country_bonus.is_null

Country bonus is null.

country_bonus.is_null(bonus: COUNTRY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_bonus.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call bool country_bonus.is_null (var country_bonus bonus))

country_bonus.max_value

Max value.

country_bonus.max_value(bonus: COUNTRY_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_bonus.max_value","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call num country_bonus.max_value (var country_bonus bonus))

country_bonus.not_equal

Bonus not equals (bonus != arg_1).

country_bonus.not_equal(bonus: COUNTRY_BONUS, arg_1: COUNTRY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_bonus.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"arg_1"}]}
Compact source
(call bool country_bonus.not_equal (var country_bonus bonus) (var country_bonus arg_1))

country_bonus.type

Type.

country_bonus.type(bonus: COUNTRY_BONUS) → BONUS_TYPE

JSON
{"kind":"CALL","type":"BONUS_TYPE","value":"country_bonus.type","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call bonus_type country_bonus.type (var country_bonus bonus))

country_bonus.value

Value.

country_bonus.value(bonus: COUNTRY_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_bonus.value","args":[{"kind":"VARIABLE","type":"COUNTRY_BONUS","value":"bonus"}]}
Compact source
(call num country_bonus.value (var country_bonus bonus))

ideology_bonus.base_value

Base value.

ideology_bonus.base_value(bonus: IDEOLOGY_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_bonus.base_value","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call num ideology_bonus.base_value (var ideology_bonus bonus))

ideology_bonus.equal

Ideology bonus equals (bonus == arg_1).

ideology_bonus.equal(bonus: IDEOLOGY_BONUS, arg_1: IDEOLOGY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_bonus.equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"arg_1"}]}
Compact source
(call bool ideology_bonus.equal (var ideology_bonus bonus) (var ideology_bonus arg_1))

ideology_bonus.exists

Ideology bonus exists.

ideology_bonus.exists(bonus: IDEOLOGY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_bonus.exists","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call bool ideology_bonus.exists (var ideology_bonus bonus))

ideology_bonus.is_enabled

Enabled.

ideology_bonus.is_enabled(bonus: IDEOLOGY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_bonus.is_enabled","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call bool ideology_bonus.is_enabled (var ideology_bonus bonus))

ideology_bonus.is_null

Ideology bonus is null.

ideology_bonus.is_null(bonus: IDEOLOGY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_bonus.is_null","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call bool ideology_bonus.is_null (var ideology_bonus bonus))

ideology_bonus.max_value

Max value.

ideology_bonus.max_value(bonus: IDEOLOGY_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_bonus.max_value","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call num ideology_bonus.max_value (var ideology_bonus bonus))

ideology_bonus.not_equal

Ideology bonus not equals (bonus != arg_1).

ideology_bonus.not_equal(bonus: IDEOLOGY_BONUS, arg_1: IDEOLOGY_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"ideology_bonus.not_equal","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"arg_1"}]}
Compact source
(call bool ideology_bonus.not_equal (var ideology_bonus bonus) (var ideology_bonus arg_1))

ideology_bonus.type

Type.

ideology_bonus.type(bonus: IDEOLOGY_BONUS) → BONUS_TYPE

JSON
{"kind":"CALL","type":"BONUS_TYPE","value":"ideology_bonus.type","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call bonus_type ideology_bonus.type (var ideology_bonus bonus))

ideology_bonus.value

Value.

ideology_bonus.value(bonus: IDEOLOGY_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"ideology_bonus.value","args":[{"kind":"VARIABLE","type":"IDEOLOGY_BONUS","value":"bonus"}]}
Compact source
(call num ideology_bonus.value (var ideology_bonus bonus))

type_bonus.equal

Bonus entry equals (bonus == arg_1).

type_bonus.equal(bonus: TYPE_BONUS, arg_1: TYPE_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"type_bonus.equal","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"TYPE_BONUS","value":"arg_1"}]}
Compact source
(call bool type_bonus.equal (var type_bonus bonus) (var type_bonus arg_1))

type_bonus.exists

Bonus entry exists.

type_bonus.exists(bonus: TYPE_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"type_bonus.exists","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"}]}
Compact source
(call bool type_bonus.exists (var type_bonus bonus))

type_bonus.is_null

Bonus entry is null.

type_bonus.is_null(bonus: TYPE_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"type_bonus.is_null","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"}]}
Compact source
(call bool type_bonus.is_null (var type_bonus bonus))

type_bonus.max_value

Max value.

type_bonus.max_value(bonus: TYPE_BONUS) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"type_bonus.max_value","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"}]}
Compact source
(call num type_bonus.max_value (var type_bonus bonus))

type_bonus.not_equal

Bonus entry not equals (bonus != arg_1).

type_bonus.not_equal(bonus: TYPE_BONUS, arg_1: TYPE_BONUS) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"type_bonus.not_equal","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"TYPE_BONUS","value":"arg_1"}]}
Compact source
(call bool type_bonus.not_equal (var type_bonus bonus) (var type_bonus arg_1))

type_bonus.type

Type.

type_bonus.type(bonus: TYPE_BONUS) → BONUS_TYPE

JSON
{"kind":"CALL","type":"BONUS_TYPE","value":"type_bonus.type","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"}]}
Compact source
(call bonus_type type_bonus.type (var type_bonus bonus))

type_bonus.value_at

Value at percent.

type_bonus.value_at(bonus: TYPE_BONUS, percent: NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"type_bonus.value_at","args":[{"kind":"VARIABLE","type":"TYPE_BONUS","value":"bonus"},{"kind":"VARIABLE","type":"NUMBER","value":"percent"}]}
Compact source
(call num type_bonus.value_at (var type_bonus bonus) (var num percent))

Unit methods

Methods that read unit values. Pass the object as the first argument.

unit.description

Unit description.

unit.description(unit: UNIT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"unit.description","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call str unit.description (var unit unit))

unit.equal

Unit equals (unit == arg_1).

unit.equal(unit: UNIT, arg_1: UNIT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"unit.equal","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"},{"kind":"VARIABLE","type":"UNIT","value":"arg_1"}]}
Compact source
(call bool unit.equal (var unit unit) (var unit arg_1))

unit.exists

Unit exists.

unit.exists(unit: UNIT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"unit.exists","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call bool unit.exists (var unit unit))

unit.id

Unit id.

unit.id(unit: UNIT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"unit.id","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call str unit.id (var unit unit))

unit.is_null

Unit is null.

unit.is_null(unit: UNIT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"unit.is_null","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call bool unit.is_null (var unit unit))

unit.name

Unit name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

unit.name(unit: UNIT) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"unit.name","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"}]}
Compact source
(call str unit.name (var unit unit))

unit.not_equal

Unit not equals (unit != arg_1).

unit.not_equal(unit: UNIT, arg_1: UNIT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"unit.not_equal","args":[{"kind":"VARIABLE","type":"UNIT","value":"unit"},{"kind":"VARIABLE","type":"UNIT","value":"arg_1"}]}
Compact source
(call bool unit.not_equal (var unit unit) (var unit arg_1))

Country tech methods

Methods that read country tech values. Pass the object as the first argument.

country_tech.bonuses

Bonuses.

country_tech.bonuses(country_tech: COUNTRY_TECH) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"country_tech.bonuses","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call list.bonus_entry country_tech.bonuses (var country_tech country_tech))

country_tech.cost

Cost.

country_tech.cost(country_tech: COUNTRY_TECH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_tech.cost","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call num country_tech.cost (var country_tech country_tech))

country_tech.equal

Technology equals (country_tech == arg_1).

country_tech.equal(country_tech: COUNTRY_TECH, arg_1: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"},{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"arg_1"}]}
Compact source
(call bool country_tech.equal (var country_tech country_tech) (var country_tech arg_1))

country_tech.exists

Country tech exists.

country_tech.exists(country_tech: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call bool country_tech.exists (var country_tech country_tech))

country_tech.id

Id. Use it to compare technologies; country_tech.name returns the translated display name instead.

country_tech.id(country_tech: COUNTRY_TECH) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"country_tech.id","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call str country_tech.id (var country_tech country_tech))

country_tech.is_available

Available.

country_tech.is_available(country_tech: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.is_available","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call bool country_tech.is_available (var country_tech country_tech))

country_tech.is_completed

Completed.

country_tech.is_completed(country_tech: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.is_completed","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call bool country_tech.is_completed (var country_tech country_tech))

country_tech.is_null

Country tech is null.

country_tech.is_null(country_tech: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call bool country_tech.is_null (var country_tech country_tech))

country_tech.name

Name. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

country_tech.name(country_tech: COUNTRY_TECH) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"country_tech.name","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call str country_tech.name (var country_tech country_tech))

country_tech.next_rank_cost

Next rank cost.

country_tech.next_rank_cost(country_tech: COUNTRY_TECH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_tech.next_rank_cost","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call num country_tech.next_rank_cost (var country_tech country_tech))

country_tech.node_percent

Node percent.

country_tech.node_percent(country_tech: COUNTRY_TECH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_tech.node_percent","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call num country_tech.node_percent (var country_tech country_tech))

country_tech.not_equal

Technology not equals (country_tech != arg_1).

country_tech.not_equal(country_tech: COUNTRY_TECH, arg_1: COUNTRY_TECH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_tech.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"},{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"arg_1"}]}
Compact source
(call bool country_tech.not_equal (var country_tech country_tech) (var country_tech arg_1))

country_tech.owner

Owner.

country_tech.owner(country_tech: COUNTRY_TECH) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"country_tech.owner","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call country country_tech.owner (var country_tech country_tech))

country_tech.percent

Percent.

country_tech.percent(country_tech: COUNTRY_TECH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_tech.percent","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call num country_tech.percent (var country_tech country_tech))

country_tech.required

Required research.

country_tech.required(country_tech: COUNTRY_TECH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_tech.required","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call num country_tech.required (var country_tech country_tech))

country_tech.technology

Technology.

country_tech.technology(country_tech: COUNTRY_TECH) → TECHNOLOGY

JSON
{"kind":"CALL","type":"TECHNOLOGY","value":"country_tech.technology","args":[{"kind":"VARIABLE","type":"COUNTRY_TECH","value":"country_tech"}]}
Compact source
(call technology country_tech.technology (var country_tech country_tech))

Country research methods

Methods that read country research values. Pass the object as the first argument.

country_research.bonuses

Bonuses.

country_research.bonuses(country_research: COUNTRY_RESEARCH) → LIST of BONUS_ENTRY

JSON
{"kind":"CALL","type":"LIST","elementType":"BONUS_ENTRY","value":"country_research.bonuses","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call list.bonus_entry country_research.bonuses (var country_research country_research))

country_research.cost

Cost.

country_research.cost(country_research: COUNTRY_RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_research.cost","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call num country_research.cost (var country_research country_research))

country_research.effective_percent

Effective percent.

country_research.effective_percent(country_research: COUNTRY_RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_research.effective_percent","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call num country_research.effective_percent (var country_research country_research))

country_research.equal

Research equals (country_research == arg_1).

country_research.equal(country_research: COUNTRY_RESEARCH, arg_1: COUNTRY_RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_research.equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"},{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"arg_1"}]}
Compact source
(call bool country_research.equal (var country_research country_research) (var country_research arg_1))

country_research.exists

Country research exists.

country_research.exists(country_research: COUNTRY_RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_research.exists","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call bool country_research.exists (var country_research country_research))

country_research.is_available

Available.

country_research.is_available(country_research: COUNTRY_RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_research.is_available","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call bool country_research.is_available (var country_research country_research))

country_research.is_null

Country research is null.

country_research.is_null(country_research: COUNTRY_RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_research.is_null","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call bool country_research.is_null (var country_research country_research))

country_research.not_equal

Research not equals (country_research != arg_1).

country_research.not_equal(country_research: COUNTRY_RESEARCH, arg_1: COUNTRY_RESEARCH) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"country_research.not_equal","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"},{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"arg_1"}]}
Compact source
(call bool country_research.not_equal (var country_research country_research) (var country_research arg_1))

country_research.owner

Owner.

country_research.owner(country_research: COUNTRY_RESEARCH) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"country_research.owner","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call country country_research.owner (var country_research country_research))

country_research.percent

Percent.

country_research.percent(country_research: COUNTRY_RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_research.percent","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call num country_research.percent (var country_research country_research))

country_research.required

Required.

country_research.required(country_research: COUNTRY_RESEARCH) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"country_research.required","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call num country_research.required (var country_research country_research))

country_research.research

Research.

country_research.research(country_research: COUNTRY_RESEARCH) → RESEARCH

JSON
{"kind":"CALL","type":"RESEARCH","value":"country_research.research","args":[{"kind":"VARIABLE","type":"COUNTRY_RESEARCH","value":"country_research"}]}
Compact source
(call research country_research.research (var country_research country_research))

Battle methods

Methods that read battle values. Pass the object as the first argument.

battle.casualty_balance

Casualty balance.

battle.casualty_balance(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.casualty_balance","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.casualty_balance (var battle battle))

battle.country1

Country 1.

battle.country1(battle: BATTLE) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"battle.country1","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call country battle.country1 (var battle battle))

battle.country2

Country 2.

battle.country2(battle: BATTLE) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"battle.country2","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call country battle.country2 (var battle battle))

battle.duration

Duration.

battle.duration(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.duration","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.duration (var battle battle))

battle.equal

Battle equals (battle == arg_1).

battle.equal(battle: BATTLE, arg_1: BATTLE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.equal","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"},{"kind":"VARIABLE","type":"BATTLE","value":"arg_1"}]}
Compact source
(call bool battle.equal (var battle battle) (var battle arg_1))

battle.estimated_duration

Estimated duration.

battle.estimated_duration(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.estimated_duration","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.estimated_duration (var battle battle))

battle.exists

Battle exists.

battle.exists(battle: BATTLE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.exists","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call bool battle.exists (var battle battle))

battle.finish_date

Finish date.

battle.finish_date(battle: BATTLE) → DATE

JSON
{"kind":"CALL","type":"DATE","value":"battle.finish_date","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call date battle.finish_date (var battle battle))

battle.finish_day

Finish day.

battle.finish_day(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.finish_day","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.finish_day (var battle battle))

battle.has_country

Has country.

battle.has_country(battle: BATTLE, country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.has_country","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool battle.has_country (var battle battle) (var country country))

battle.has_ended

Has ended.

battle.has_ended(battle: BATTLE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.has_ended","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call bool battle.has_ended (var battle battle))

battle.has_squad

Has squad.

battle.has_squad(battle: BATTLE, squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.has_squad","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"},{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool battle.has_squad (var battle battle) (var squad squad))

battle.home_advantage_side

Home advantage side.

battle.home_advantage_side(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.home_advantage_side","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.home_advantage_side (var battle battle))

battle.is_null

Battle is null.

battle.is_null(battle: BATTLE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.is_null","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call bool battle.is_null (var battle battle))

battle.location

Location.

battle.location(battle: BATTLE) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"battle.location","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call point battle.location (var battle battle))

battle.luck

Luck.

battle.luck(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.luck","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.luck (var battle battle))

battle.not_equal

Battle not equals (battle != arg_1).

battle.not_equal(battle: BATTLE, arg_1: BATTLE) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"battle.not_equal","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"},{"kind":"VARIABLE","type":"BATTLE","value":"arg_1"}]}
Compact source
(call bool battle.not_equal (var battle battle) (var battle arg_1))

battle.outcome

Outcome.

battle.outcome(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.outcome","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.outcome (var battle battle))

battle.side1_attack

Side 1 attack.

battle.side1_attack(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_attack","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_attack (var battle battle))

battle.side1_casualties

Side 1 casualties.

battle.side1_casualties(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_casualties","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_casualties (var battle battle))

battle.side1_casualty_percent

Side 1 casualty percent.

battle.side1_casualty_percent(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_casualty_percent","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_casualty_percent (var battle battle))

battle.side1_combat_rate

Side 1 combat rate.

battle.side1_combat_rate(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_combat_rate","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_combat_rate (var battle battle))

battle.side1_defense

Side 1 defense.

battle.side1_defense(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_defense","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_defense (var battle battle))

battle.side1_estimated_casualty_percent

Side 1 estimated casualty percent.

battle.side1_estimated_casualty_percent(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_estimated_casualty_percent","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_estimated_casualty_percent (var battle battle))

battle.side1_home_advantage

Side 1 home advantage.

battle.side1_home_advantage(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_home_advantage","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_home_advantage (var battle battle))

battle.side1_piercing

Side 1 piercing.

battle.side1_piercing(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side1_piercing","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side1_piercing (var battle battle))

battle.side2_attack

Side 2 attack.

battle.side2_attack(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_attack","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_attack (var battle battle))

battle.side2_casualties

Side 2 casualties.

battle.side2_casualties(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_casualties","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_casualties (var battle battle))

battle.side2_casualty_percent

Side 2 casualty percent.

battle.side2_casualty_percent(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_casualty_percent","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_casualty_percent (var battle battle))

battle.side2_combat_rate

Side 2 combat rate.

battle.side2_combat_rate(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_combat_rate","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_combat_rate (var battle battle))

battle.side2_defense

Side 2 defense.

battle.side2_defense(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_defense","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_defense (var battle battle))

battle.side2_estimated_casualty_percent

Side 2 estimated casualty percent.

battle.side2_estimated_casualty_percent(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_estimated_casualty_percent","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_estimated_casualty_percent (var battle battle))

battle.side2_home_advantage

Side 2 home advantage.

battle.side2_home_advantage(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_home_advantage","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_home_advantage (var battle battle))

battle.side2_piercing

Side 2 piercing.

battle.side2_piercing(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.side2_piercing","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.side2_piercing (var battle battle))

battle.speed

Speed.

battle.speed(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.speed","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.speed (var battle battle))

battle.squad1

Squad 1.

battle.squad1(battle: BATTLE) → SQUAD

JSON
{"kind":"CALL","type":"SQUAD","value":"battle.squad1","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call squad battle.squad1 (var battle battle))

battle.squad2

Squad 2.

battle.squad2(battle: BATTLE) → SQUAD

JSON
{"kind":"CALL","type":"SQUAD","value":"battle.squad2","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call squad battle.squad2 (var battle battle))

battle.start_date

Start date.

battle.start_date(battle: BATTLE) → DATE

JSON
{"kind":"CALL","type":"DATE","value":"battle.start_date","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call date battle.start_date (var battle battle))

battle.terrain

Terrain.

battle.terrain(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.terrain","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.terrain (var battle battle))

battle.total_power

Total power.

battle.total_power(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.total_power","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.total_power (var battle battle))

battle.total_troops

Total troops.

battle.total_troops(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.total_troops","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.total_troops (var battle battle))

battle.x

X.

battle.x(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.x","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.x (var battle battle))

battle.y

Y.

battle.y(battle: BATTLE) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"battle.y","args":[{"kind":"VARIABLE","type":"BATTLE","value":"battle"}]}
Compact source
(call num battle.y (var battle battle))

Invasion methods

Methods that read invasion values. Pass the object as the first argument.

invasion.attacker

Attacker.

invasion.attacker(invasion: INVASION) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"invasion.attacker","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call country invasion.attacker (var invasion invasion))

invasion.clear

Clear.

invasion.clear(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.clear","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.clear (var invasion invasion))

invasion.conquests

Conquests.

invasion.conquests(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.conquests","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.conquests (var invasion invasion))

invasion.defender

Defender.

invasion.defender(invasion: INVASION) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"invasion.defender","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call country invasion.defender (var invasion invasion))

invasion.equal

Invasion equals (invasion == arg_1).

invasion.equal(invasion: INVASION, arg_1: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.equal","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"},{"kind":"VARIABLE","type":"INVASION","value":"arg_1"}]}
Compact source
(call bool invasion.equal (var invasion invasion) (var invasion arg_1))

invasion.exists

Invasion exists.

invasion.exists(invasion: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.exists","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call bool invasion.exists (var invasion invasion))

invasion.is_finished

Is finished.

invasion.is_finished(invasion: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.is_finished","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call bool invasion.is_finished (var invasion invasion))

invasion.is_null

Invasion is null.

invasion.is_null(invasion: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.is_null","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call bool invasion.is_null (var invasion invasion))

invasion.is_paused

Is paused.

invasion.is_paused(invasion: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.is_paused","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call bool invasion.is_paused (var invasion invasion))

invasion.is_started

Is started.

invasion.is_started(invasion: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.is_started","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call bool invasion.is_started (var invasion invasion))

invasion.last_conquest_percent

Last conquest percent.

invasion.last_conquest_percent(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.last_conquest_percent","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.last_conquest_percent (var invasion invasion))

invasion.last_conquests

Last conquests.

invasion.last_conquests(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.last_conquests","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.last_conquests (var invasion invasion))

invasion.loot

Loot.

invasion.loot(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.loot","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.loot (var invasion invasion))

invasion.node_count

Active nodes.

invasion.node_count(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.node_count","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.node_count (var invasion invasion))

invasion.not_equal

Invasion not equals (invasion != arg_1).

invasion.not_equal(invasion: INVASION, arg_1: INVASION) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"invasion.not_equal","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"},{"kind":"VARIABLE","type":"INVASION","value":"arg_1"}]}
Compact source
(call bool invasion.not_equal (var invasion invasion) (var invasion arg_1))

invasion.origin

Origin.

invasion.origin(invasion: INVASION) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"invasion.origin","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call point invasion.origin (var invasion invasion))

invasion.origin_x

Origin x.

invasion.origin_x(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.origin_x","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.origin_x (var invasion invasion))

invasion.origin_y

Origin y.

invasion.origin_y(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.origin_y","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.origin_y (var invasion invasion))

invasion.remaining_invasion

Remaining invasion.

invasion.remaining_invasion(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.remaining_invasion","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.remaining_invasion (var invasion invasion))

invasion.remaining_resistance

Remaining resistance.

invasion.remaining_resistance(invasion: INVASION) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"invasion.remaining_resistance","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call num invasion.remaining_resistance (var invasion invasion))

invasion.squad

Squad.

invasion.squad(invasion: INVASION) → SQUAD

JSON
{"kind":"CALL","type":"SQUAD","value":"invasion.squad","args":[{"kind":"VARIABLE","type":"INVASION","value":"invasion"}]}
Compact source
(call squad invasion.squad (var invasion invasion))

List methods

List helpers: size, items, sorting and searching (list.*).

list.average_numbers

Average numbers.

list.average_numbers(list: LIST of NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.average_numbers","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"}]}
Compact source
(call num list.average_numbers (var list.number list))

list.contains_boolean

Contains boolean.

list.contains_boolean(list: LIST of BOOLEAN, boolean: BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_boolean","args":[{"kind":"VARIABLE","type":"LIST","elementType":"BOOLEAN","value":"list"},{"kind":"VARIABLE","type":"BOOLEAN","value":"boolean"}]}
Compact source
(call bool list.contains_boolean (var list.boolean list) (var bool boolean))

list.contains_country

Contains country.

list.contains_country(list: LIST of COUNTRY, country: COUNTRY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_country","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"},{"kind":"VARIABLE","type":"COUNTRY","value":"country"}]}
Compact source
(call bool list.contains_country (var list.country list) (var country country))

list.contains_number

Contains number.

list.contains_number(list: LIST of NUMBER, number: NUMBER) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_number","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"},{"kind":"VARIABLE","type":"NUMBER","value":"number"}]}
Compact source
(call bool list.contains_number (var list.number list) (var num number))

list.contains_point

Contains point.

list.contains_point(list: LIST of POINT, point: POINT) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_point","args":[{"kind":"VARIABLE","type":"LIST","elementType":"POINT","value":"list"},{"kind":"VARIABLE","type":"POINT","value":"point"}]}
Compact source
(call bool list.contains_point (var points list) (var point point))

list.contains_squad

Contains squad.

list.contains_squad(list: LIST of SQUAD, squad: SQUAD) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_squad","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"},{"kind":"VARIABLE","type":"SQUAD","value":"squad"}]}
Compact source
(call bool list.contains_squad (var list.squad list) (var squad squad))

list.contains_text

Contains text.

list.contains_text(list: LIST of STRING, text: STRING) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.contains_text","args":[{"kind":"VARIABLE","type":"LIST","elementType":"STRING","value":"list"},{"kind":"VARIABLE","type":"STRING","value":"text"}]}
Compact source
(call bool list.contains_text (var list.string list) (var str text))

list.count

Count.

list.count(list: LIST) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.count","args":[{"kind":"VARIABLE","type":"LIST","value":"list"}]}
Compact source
(call num list.count (var list list))

list.country_gdp_average

Country gdp average.

list.country_gdp_average(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_gdp_average","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_gdp_average (var list.country list))

list.country_gdp_max

Country gdp max.

list.country_gdp_max(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_gdp_max","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_gdp_max (var list.country list))

list.country_gdp_min

Country gdp min.

list.country_gdp_min(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_gdp_min","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_gdp_min (var list.country list))

list.country_gdp_sum

Country gdp sum.

list.country_gdp_sum(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_gdp_sum","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_gdp_sum (var list.country list))

list.country_military_power_average

Country military power average.

list.country_military_power_average(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_military_power_average","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_military_power_average (var list.country list))

list.country_military_power_max

Country military power max.

list.country_military_power_max(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_military_power_max","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_military_power_max (var list.country list))

list.country_military_power_min

Country military power min.

list.country_military_power_min(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_military_power_min","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_military_power_min (var list.country list))

list.country_military_power_sum

Country military power sum.

list.country_military_power_sum(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_military_power_sum","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_military_power_sum (var list.country list))

list.country_population_average

Country population average.

list.country_population_average(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_population_average","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_population_average (var list.country list))

list.country_population_max

Country population max.

list.country_population_max(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_population_max","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_population_max (var list.country list))

list.country_population_min

Country population min.

list.country_population_min(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_population_min","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_population_min (var list.country list))

list.country_population_sum

Country population sum.

list.country_population_sum(list: LIST of COUNTRY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.country_population_sum","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call num list.country_population_sum (var list.country list))

list.first_boolean

First boolean.

list.first_boolean(list: LIST of BOOLEAN) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.first_boolean","args":[{"kind":"VARIABLE","type":"LIST","elementType":"BOOLEAN","value":"list"}]}
Compact source
(call bool list.first_boolean (var list.boolean list))

list.first_country

First country.

list.first_country(list: LIST of COUNTRY) → COUNTRY

JSON
{"kind":"CALL","type":"COUNTRY","value":"list.first_country","args":[{"kind":"VARIABLE","type":"LIST","elementType":"COUNTRY","value":"list"}]}
Compact source
(call country list.first_country (var list.country list))

list.first_number

First number.

list.first_number(list: LIST of NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.first_number","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"}]}
Compact source
(call num list.first_number (var list.number list))

list.first_point

First point.

list.first_point(list: LIST of POINT) → POINT

JSON
{"kind":"CALL","type":"POINT","value":"list.first_point","args":[{"kind":"VARIABLE","type":"LIST","elementType":"POINT","value":"list"}]}
Compact source
(call point list.first_point (var points list))

list.first_squad

First squad.

list.first_squad(list: LIST of SQUAD) → SQUAD

JSON
{"kind":"CALL","type":"SQUAD","value":"list.first_squad","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call squad list.first_squad (var list.squad list))

list.first_text

First text.

list.first_text(list: LIST of STRING) → STRING

JSON
{"kind":"CALL","type":"STRING","value":"list.first_text","args":[{"kind":"VARIABLE","type":"LIST","elementType":"STRING","value":"list"}]}
Compact source
(call str list.first_text (var list.string list))

list.is_empty

Is empty.

list.is_empty(list: LIST) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.is_empty","args":[{"kind":"VARIABLE","type":"LIST","value":"list"}]}
Compact source
(call bool list.is_empty (var list list))

list.is_not_empty

List has items.

list.is_not_empty(list: LIST) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"list.is_not_empty","args":[{"kind":"VARIABLE","type":"LIST","value":"list"}]}
Compact source
(call bool list.is_not_empty (var list list))

list.max_number

Maximum number.

list.max_number(list: LIST of NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.max_number","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"}]}
Compact source
(call num list.max_number (var list.number list))

list.min_number

Minimum number.

list.min_number(list: LIST of NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.min_number","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"}]}
Compact source
(call num list.min_number (var list.number list))

list.size

Size.

list.size(list: LIST) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.size","args":[{"kind":"VARIABLE","type":"LIST","value":"list"}]}
Compact source
(call num list.size (var list list))

list.squad_power_average

Squad power average.

list.squad_power_average(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_power_average","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_power_average (var list.squad list))

list.squad_power_max

Squad power max.

list.squad_power_max(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_power_max","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_power_max (var list.squad list))

list.squad_power_min

Squad power min.

list.squad_power_min(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_power_min","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_power_min (var list.squad list))

list.squad_power_sum

Squad power sum.

list.squad_power_sum(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_power_sum","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_power_sum (var list.squad list))

list.squad_troops_average

Squad troops average.

list.squad_troops_average(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_troops_average","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_troops_average (var list.squad list))

list.squad_troops_max

Squad troops max.

list.squad_troops_max(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_troops_max","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_troops_max (var list.squad list))

list.squad_troops_min

Squad troops min.

list.squad_troops_min(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_troops_min","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_troops_min (var list.squad list))

list.squad_troops_sum

Squad troops sum.

list.squad_troops_sum(list: LIST of SQUAD) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.squad_troops_sum","args":[{"kind":"VARIABLE","type":"LIST","elementType":"SQUAD","value":"list"}]}
Compact source
(call num list.squad_troops_sum (var list.squad list))

list.sum_numbers

Sum numbers.

list.sum_numbers(list: LIST of NUMBER) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"list.sum_numbers","args":[{"kind":"VARIABLE","type":"LIST","elementType":"NUMBER","value":"list"}]}
Compact source
(call num list.sum_numbers (var list.number list))

Game methods

Game-wide data: the running game, the world economy and the scenario (game.*, economy.*).

economy.base_growth

Base growth.

economy.base_growth(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.base_growth","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.base_growth (var world_economy economy))

economy.base_growth_rate

Base growth rate.

economy.base_growth_rate(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.base_growth_rate","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.base_growth_rate (var world_economy economy))

economy.base_growth_step

Base growth step.

economy.base_growth_step(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.base_growth_step","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.base_growth_step (var world_economy economy))

economy.days_to_target_base_growth

Days to target base growth.

economy.days_to_target_base_growth(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.days_to_target_base_growth","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.days_to_target_base_growth (var world_economy economy))

economy.equal

World economy equals (economy == arg_1).

economy.equal(economy: WORLD_ECONOMY, arg_1: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.equal","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"},{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"arg_1"}]}
Compact source
(call bool economy.equal (var world_economy economy) (var world_economy arg_1))

economy.exists

World economy exists.

economy.exists(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.exists","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.exists (var world_economy economy))

economy.in_recession

In recession.

economy.in_recession(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.in_recession","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.in_recession (var world_economy economy))

economy.inflation

Inflation.

economy.inflation(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.inflation","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.inflation (var world_economy economy))

economy.is_null

World economy is null.

economy.is_null(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.is_null","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.is_null (var world_economy economy))

economy.mean_target_base_growth

Mean target base growth.

economy.mean_target_base_growth(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.mean_target_base_growth","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.mean_target_base_growth (var world_economy economy))

economy.money_inflation

Money inflation.

economy.money_inflation(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.money_inflation","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.money_inflation (var world_economy economy))

economy.not_equal

World economy not equals (economy != arg_1).

economy.not_equal(economy: WORLD_ECONOMY, arg_1: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.not_equal","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"},{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"arg_1"}]}
Compact source
(call bool economy.not_equal (var world_economy economy) (var world_economy arg_1))

economy.population_inflation

Population inflation.

economy.population_inflation(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.population_inflation","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.population_inflation (var world_economy economy))

economy.recovering

Recovering.

economy.recovering(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.recovering","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.recovering (var world_economy economy))

economy.target_base_growth

Target base growth.

economy.target_base_growth(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.target_base_growth","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.target_base_growth (var world_economy economy))

economy.target_base_growth_day

Target base growth day.

economy.target_base_growth_day(economy: WORLD_ECONOMY) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"economy.target_base_growth_day","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call num economy.target_base_growth_day (var world_economy economy))

economy.target_in_recession

Target in recession.

economy.target_in_recession(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.target_in_recession","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.target_in_recession (var world_economy economy))

economy.worsening

Worsening.

economy.worsening(economy: WORLD_ECONOMY) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"economy.worsening","args":[{"kind":"VARIABLE","type":"WORLD_ECONOMY","value":"economy"}]}
Compact source
(call bool economy.worsening (var world_economy economy))

game

Game.

game() → GAME

JSON
{"kind":"CALL","type":"GAME","value":"game","args":[]}
Compact source
(call game game)

game.coalitions

Coalitions.

game.coalitions(game: GAME) → LIST of COALITION

JSON
{"kind":"CALL","type":"LIST","elementType":"COALITION","value":"game.coalitions","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call list.coalition game.coalitions (var game game))

game.date

Date.

game.date(game: GAME) → DATE

JSON
{"kind":"CALL","type":"DATE","value":"game.date","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call date game.date (var game game))

game.day

Day.

game.day(game: GAME) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"game.day","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call num game.day (var game game))

game.delta

Delta.

game.delta(game: GAME) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"game.delta","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call num game.delta (var game game))

game.economy

World economy.

game.economy(game: GAME) → WORLD_ECONOMY

JSON
{"kind":"CALL","type":"WORLD_ECONOMY","value":"game.economy","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call world_economy game.economy (var game game))

game.goal_target_percent

Goal target percent.

game.goal_target_percent(game: GAME) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"game.goal_target_percent","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call num game.goal_target_percent (var game game))

game.goal_type

Goal type.

game.goal_type(game: GAME) → GOAL_TYPE

JSON
{"kind":"CALL","type":"GOAL_TYPE","value":"game.goal_type","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call goal_type game.goal_type (var game game))

game.pace

Pace. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

game.pace(game: GAME) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"game.pace","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call num game.pace (var game game))

game.paused

Paused. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

game.paused(game: GAME) → BOOLEAN

JSON
{"kind":"CALL","type":"BOOLEAN","value":"game.paused","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call bool game.paused (var game game))

game.speed

Speed. Client-local: the result can differ between players, so use it only for displays (messages, HUD, overlays), never for rules that change the game in multiplayer.

game.speed(game: GAME) → NUMBER

JSON
{"kind":"CALL","type":"NUMBER","value":"game.speed","args":[{"kind":"VARIABLE","type":"GAME","value":"game"}]}
Compact source
(call num game.speed (var game game))