Difference between pages "Compiling from Source" and "Monster"
(→KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds.: --just fixing the ToC entry) |
(→Related Functions: item_drops are now floats) |
||
Line 1: | Line 1: | ||
− | + | {{DISPLAYTITLE:monster}} | |
− | + | {{TOCright}} | |
− | |||
− | + | This data type represents any monster you can encounter in KoL. | |
− | + | The full range, besides $monster[ none ], is too much to list and keep | |
+ | up with here: please see the Wiki {{kolwiki|Monster Compendium}} page for | ||
+ | more information. | ||
− | == | + | ==Related Functions== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | {{Flink|float [monster]|appearance_rates|location|{{opt|boolean}}}} | |
− | + | {{Flink|boolean|can_faxbot|monster}} | |
− | + | {{Flink|float|elemental_resistance|{{opt|monster}}}} | |
+ | {{Flink|int|expected_damage|{{opt|monster}}}} | ||
+ | {{Flink|boolean|faxbot|monster}} | ||
+ | {{Flink|monster [int]|get_monsters|location}} | ||
+ | {{Flink|monster|image_to_monster|strict_string}} | ||
+ | {{Flink|boolean|is_banished|monster}} | ||
+ | {{Flink|float [item]|item_drops|{{opt|monster}}}} | ||
+ | {{Flink|record [int]|item_drops_array|{{opt|monster}}}} | ||
+ | {{flink|int|jump_chance|{{opt|monster}}|{{opt|int}}|{{opt|int}}}} | ||
+ | {{Flink|monster|last_monster}} | ||
+ | {{Flink|int|meat_drop|{{opt|monster}}}} | ||
+ | {{Flink|int|monster_attack|{{opt|monster}}}} | ||
+ | {{Flink|int|monster_defense|{{opt|monster}}}} | ||
+ | {{Flink|element|monster_element|{{opt|monster}}}} | ||
+ | {{Flink|float|monster_eval|string}} | ||
+ | {{Flink|int|monster_hp|{{opt|monster}}}} | ||
+ | {{Flink|int|monster_initiative|{{opt|monster}}}} | ||
+ | {{Flink|int|monster_level_adjustment}} | ||
+ | {{Flink|phylum|monster_phylum|{{opt|monster}}}} | ||
+ | {{Flink|monster|to_monster|strict_string}} | ||
− | + | ==Proxy Record Fields== | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | Here are the proxy record fields for monsters. Proxy records are discussed in more | |
− | + | detail [[Proxy Records|here]]. | |
− | |||
− | |||
− | |||
− | + | {| cellpadding="3" cellspacing="0" border="1px" class="sortable" | |
+ | |- | style="background-color: #F2F2F2" | ||
+ | |- | ||
+ | ! Field | ||
+ | ! Data type | ||
+ | ! Default value | ||
+ | ! ASH Accessor Function / Notes | ||
+ | |- | ||
+ | | id | ||
+ | | int | ||
+ | | 0 | ||
+ | | | ||
+ | |- | ||
+ | | base_hp | ||
+ | | int | ||
+ | | 0 | ||
+ | | {{f|monster_hp}} (includes modifiers) | ||
+ | |- | ||
+ | | base_attack | ||
+ | | int | ||
+ | | 0 | ||
+ | | {{f|monster_attack}} (includes modifiers) | ||
+ | |- | ||
+ | | base_defense | ||
+ | | int | ||
+ | | 0 | ||
+ | | {{f|monster_defense}} (includes modifiers) | ||
+ | |- | ||
+ | | raw_hp | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | raw_attack | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | raw_defense | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | base_initiative | ||
+ | | int | ||
+ | | 0 | ||
+ | | {{f|monster_initiative}} (includes modifiers) | ||
+ | |- | ||
+ | | raw_initiative | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | element attack_element | ||
+ | | element | ||
+ | | none | ||
+ | | | ||
+ | |- | ||
+ | | element defense_element | ||
+ | | element | ||
+ | | none | ||
+ | | {{f|monster_element}} | ||
+ | |- | ||
+ | | physical_resistance | ||
+ | | int | ||
+ | | 0 | ||
+ | | | ||
+ | |- | ||
+ | | min_meat | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | max_meat | ||
+ | | int | ||
+ | | 0 | ||
+ | | (excludes modifiers) | ||
+ | |- | ||
+ | | base_mainstat_exp | ||
+ | | foat | ||
+ | | 0.0 | ||
+ | | (includes bonus stats from +ML, but not from +stat effects) | ||
+ | |- | ||
+ | | phylum | ||
+ | | phylum | ||
+ | | none | ||
+ | | {{f|monster_phylum}} | ||
+ | |- | ||
+ | | poison | ||
+ | | effect | ||
+ | | none | ||
+ | | | ||
+ | |- | ||
+ | | boss | ||
+ | | boolean | ||
+ | | false | ||
+ | | | ||
+ | |- | ||
+ | | dummy | ||
+ | | boolean | ||
+ | | false | ||
+ | | | ||
+ | |- | ||
+ | | image | ||
+ | | string | ||
+ | | "" | ||
+ | | | ||
+ | |- | ||
+ | | images | ||
+ | | aggregate boolean [string] | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | attributes | ||
+ | | string | ||
+ | | "" | ||
+ | | A compilation of attack, defense, initiative, element, meat drop, and phylum | ||
+ | |- | ||
+ | | random_modifiers | ||
+ | | aggregate boolean [string] | ||
+ | | | ||
+ | | The monster's random modifiers - like those generated in the One Crazy Random Summer path | ||
+ | |- | ||
+ | | manuel_name | ||
+ | | string | ||
+ | | "" | ||
+ | | | ||
+ | |} | ||
− | + | [[Category:Scripting]] [[Category:Data Types]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 20:08, 26 December 2023
This data type represents any monster you can encounter in KoL.
The full range, besides $monster[ none ], is too much to list and keep up with here: please see the Wiki Monster Compendium page for more information.
Related Functions
float [monster] appearance_rates( location, [boolean] )
boolean can_faxbot( monster )
float elemental_resistance( [monster] )
int expected_damage( [monster] )
boolean faxbot( monster )
monster [int] get_monsters( location )
monster image_to_monster( strict_string )
boolean is_banished( monster )
float [item] item_drops( [monster] )
record [int] item_drops_array( [monster] )
int jump_chance( [monster], [int], [int] )
monster last_monster()
int monster_attack( [monster] )
int monster_defense( [monster] )
element monster_element( [monster] )
float monster_eval( string )
int monster_initiative( [monster] )
int monster_level_adjustment()
phylum monster_phylum( [monster] )
monster to_monster( strict_string )
Proxy Record Fields
Here are the proxy record fields for monsters. Proxy records are discussed in more detail here.
Field | Data type | Default value | ASH Accessor Function / Notes |
---|---|---|---|
id | int | 0 | |
base_hp | int | 0 | monster_hp() (includes modifiers)
|
base_attack | int | 0 | monster_attack() (includes modifiers)
|
base_defense | int | 0 | monster_defense() (includes modifiers)
|
raw_hp | int | 0 | (excludes modifiers) |
raw_attack | int | 0 | (excludes modifiers) |
raw_defense | int | 0 | (excludes modifiers) |
base_initiative | int | 0 | monster_initiative() (includes modifiers)
|
raw_initiative | int | 0 | (excludes modifiers) |
element attack_element | element | none | |
element defense_element | element | none | monster_element()
|
physical_resistance | int | 0 | |
min_meat | int | 0 | (excludes modifiers) |
max_meat | int | 0 | (excludes modifiers) |
base_mainstat_exp | foat | 0.0 | (includes bonus stats from +ML, but not from +stat effects) |
phylum | phylum | none | monster_phylum()
|
poison | effect | none | |
boss | boolean | false | |
dummy | boolean | false | |
image | string | "" | |
images | aggregate boolean [string] | ||
attributes | string | "" | A compilation of attack, defense, initiative, element, meat drop, and phylum |
random_modifiers | aggregate boolean [string] | The monster's random modifiers - like those generated in the One Crazy Random Summer path | |
manuel_name | string | "" |