Nothing found. Try another word or section.
01 General methodsGeneral helpers that do not belong to one object type, such as boolean logic and comparisons of objects.
boolean.equal→ BOOLEAN + 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→ BOOLEAN + 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 + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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)) 02 Number methodsArithmetic, comparisons, rounding, formatting and random numbers (number.*).
number.abs→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ STRING + 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→ STRING + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 03 Text methodsText helpers: joining, comparing and searching text (string.*).
string.after→ STRING + 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→ STRING + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ STRING + 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→ STRING + 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→ STRING + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ 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→ 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→ STRING + 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→ STRING + 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)) 04 Color methodsBuilding and changing colors (color.*).
color.alpha→ NUMBER + 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→ COLOR + 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→ NUMBER + 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→ COLOR + 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→ COLOR + 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→ BOOLEAN + 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→ STRING + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ NUMBER + 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→ NUMBER + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ COLOR + 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→ NUMBER + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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→ COLOR + 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)) 05 Random number methodsRandom number generators (rng.*). They use the game's synchronized random generator.
rng→ RNG + Rng.
rng() → RNG
JSON {"kind":"CALL","type":"RNG","value":"rng","args":[]} Compact source (call rng rng) rng.between→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ 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→ NUMBER + 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)) 06 Registry methodsReading registries, the saved key-value tables written with SET_REGISTRY (registry.*).
registry.boolean→ 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 + 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→ BOOLEAN + 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 + 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→ ANY + 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→ BOOLEAN + 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→ LIST of STRING + 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 + 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 + 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 + 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→ NUMBER + 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→ STRING + 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→ LIST + 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)) 07 Country methodsReading a country's data (country.*). Pass the country as the first argument.
country.ai→ 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→ LIST of COUNTRY + 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→ NUMBER + 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 + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ LIST of COUNTRY + 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 + 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→ 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→ BOOLEAN + 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→ POINT + 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→ 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 + 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→ STRING + 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 + 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→ COUNTRY + 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→ LIST of BATTLE + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ LIST of COUNTRY + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ LIST of INVASION + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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 + 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→ COUNTRY + 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→ STRING + 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→ 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ LIST of NUMBER + 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→ LIST of COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ LIST of COUNTRY + 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→ 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→ NUMBER + 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→ LIST of SQUAD + 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→ LIST of POINT + 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)) 08 Country claims methodsMethods that read country claims values. Pass the object as the first argument.
claims.claim_point_count→ NUMBER + 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→ LIST of POINT + 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→ NUMBER + 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→ LIST of POINT + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ LIST of POINT + 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→ NUMBER + 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→ LIST of POINT + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ BOOLEAN + 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)) 09 Country AI methodsMethods that read country ai values. Pass the object as the first argument.
ai.awake_day→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ AI_TYPE + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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)) 10 Budget methodsMethods that read budget values. Pass the object as the first argument.
budget.base_military_funding_percent→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 11 Country calculations methodsMethods that read country calculations values. Pass the object as the first argument.
calculations.active_military_ratio→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 12 Rankings methodsMethods that read rankings values. Pass the object as the first argument.
country_rankings.area→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ BOOLEAN + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ BOOLEAN + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ COUNTRY_RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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→ RANKING + 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)) 13 Ranking methodsMethods that read ranking values. Pass the object as the first argument.
country_ranking.equal→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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 + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ 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→ NUMBER + 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)) 14 Coalition methodsMethods that read coalition values. Pass the object as the first argument.
coalition.countries→ LIST of COUNTRY + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ COALITION + 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→ NUMBER + 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)) 15 Map methodsMethods that read map values. Pass the object as the first argument.
map.battles→ LIST of BATTLE + 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→ 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ 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→ LIST of INVASION + 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→ NUMBER + 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→ NUMBER + 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→ COUNTRY + 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→ NUMBER + 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→ 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ 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→ 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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→ LIST of COUNTRY + 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)) 16 Squad methodsMethods that read squad values. Pass the object as the first argument.
squad.age→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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 + 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→ LIST of BATTLE + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ POINT + 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→ 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ 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→ NUMBER + 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→ 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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 + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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)) 17 Point methodsMethods that read point values. Pass the object as the first argument.
point.area→ NUMBER + 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→ NUMBER + 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 of POINT + 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→ COUNTRY + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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.
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→ COUNTRY + 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→ COUNTRY + 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→ BOOLEAN + 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 + 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 + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ COUNTRY + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ POINT + 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→ NUMBER + 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→ NUMBER + 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)) 18 Land cover methodsMethods that read land cover values. Pass the object as the first argument.
land_cover.area_effect_cost→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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)) 19 Ideology methodsMethods that read ideology values. Pass the object as the first argument.
ideology.effect→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ LIST of LEADER + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ COUNTRY + 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→ LIST of IDEOLOGY_PERK + 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→ LIST of BONUS_ENTRY + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 20 Leader methodsMethods that read leader values. Pass the object as the first argument.
leader.bonuses→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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)) 21 Technology methodsMethods that read technology values. Pass the object as the first argument.
tech_school.equal→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ LIST of BONUS_ENTRY + 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→ BOOLEAN + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ TECH_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→ NUMBER + 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)) 22 Research methodsMethods that read research values. Pass the object as the first argument.
research.base_time→ NUMBER + 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→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ TECH_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→ NUMBER + 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)) 23 Date methodsMethods that read date values. Pass the object as the first argument.
date.after→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ DATE + 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→ BOOLEAN + 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→ NUMBER + 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)) 24 Area effect methodsMethods that read aoe values. Pass the object as the first argument.
aoe.can_develop_for→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ TECH_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→ NUMBER + 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→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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)) 25 Bonus methodsMethods that read bonus values. Pass the object as the first argument.
bonus.ammunition_shortage→ NUMBER + 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→ LIST of BONUS_ENTRY + 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_ENTRY + 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→ BONUS_ENTRY + 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→ NUMBER + 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→ NUMBER + 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→ LIST of CUSTOM_EFFECT_INSTANCE + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ COUNTRY + 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→ COUNTRY_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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ LIST of COUNTRY_RESEARCH + 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→ LIST of COUNTRY_TECH + 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→ COUNTRY_TECH + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ COUNTRY + 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→ BONUS_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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ CUSTOM_EFFECT + 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→ NUMBER + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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)) 26 Bonus entry methodsMethods that read type bonus values. Pass the object as the first argument.
country_bonus.equal→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ 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→ NUMBER + 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)) 27 Unit methodsMethods that read unit values. Pass the object as the first argument.
unit.description→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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)) 28 Country tech methodsMethods that read country tech values. Pass the object as the first argument.
country_tech.bonuses→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ STRING + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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 + 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)) 29 Country research methodsMethods that read country research values. Pass the object as the first argument.
country_research.bonuses→ LIST of BONUS_ENTRY + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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 + 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)) 30 Battle methodsMethods that read battle values. Pass the object as the first argument.
battle.casualty_balance→ NUMBER + 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 + 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 + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ POINT + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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 + 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 + 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→ 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 31 Invasion methodsMethods that read invasion values. Pass the object as the first argument.
invasion.attacker→ COUNTRY + 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→ NUMBER + 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→ NUMBER + 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→ COUNTRY + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ POINT + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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 + 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)) 32 List methodsList helpers: size, items, sorting and searching (list.*).
list.average_numbers→ NUMBER + 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→ 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ 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→ 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→ 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→ 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→ 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→ STRING + 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→ BOOLEAN + 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→ BOOLEAN + 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→ 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→ 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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)) 33 Game methodsGame-wide data: the running game, the world economy and the scenario (game.*, economy.*).
economy.base_growth→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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→ NUMBER + 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→ BOOLEAN + 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→ BOOLEAN + 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() → GAME
JSON {"kind":"CALL","type":"GAME","value":"game","args":[]} Compact source (call game game) game.coalitions→ LIST of COALITION + 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 + 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→ NUMBER + 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→ NUMBER + 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 + 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→ NUMBER + 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 + 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→ NUMBER + 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→ BOOLEAN + 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→ NUMBER + 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))