Difference between revisions of "Monster"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
 
imported>Flunkdogg
m (Previously "random_attributes", was renamed to "random_modifiers")
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[Datatype_Constants#.24monster.5Bconstant.5D]]
+
{{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|int [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]]

Revision as of 23:07, 31 January 2018


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 )

int [item] item_drops( [monster] )

record [int] item_drops_array( [monster] )

int jump_chance( [monster], [int], [int] )

monster last_monster()

int meat_drop( [monster] )

int monster_attack( [monster] )

int monster_defense( [monster] )

element monster_element( [monster] )

float monster_eval( string )

int monster_hp( [monster] )

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 ""