Adventuring: Difference between revisions
imported>Slyz added expected_damage(). Some functions do not default to 0 when no monster is specified, they default to the last monster encountered. |
imported>Zarqon m some clarification |
||
Line 11: | Line 11: | ||
{{Flink|location|my_location|desc=Returns the location where you last adventured.}} | {{Flink|location|my_location|desc=Returns the location where you last adventured.}} | ||
{{Flink|void|refresh_status|desc=Refreshes the side-pane character info (health, effects, etc.).}} | {{Flink|void|refresh_status|desc=Refreshes the side-pane character info (health, effects, etc.).}} | ||
{{Flink|buffer|run_combat|desc=Uses the current KoLmafia settings to run a combat (for use with [[visit_url|visit_url()]]).}} | {{Flink|buffer|run_combat|desc=Uses the current KoLmafia settings to run a combat (for use with [[visit_url|visit_url()]]).}} | ||
{{Flink|boolean|retrieve_item|int|item|desc=Uses KoLmafia internal logic to gather items (see page for details).}} | {{Flink|boolean|retrieve_item|int|item|desc=Uses KoLmafia internal logic to gather items (see page for details).}} | ||
{{Flink|boolean|change_mcd|int|desc=Tries to set your +ML device to a specified setting and reports on success.}} | {{Flink|boolean|change_mcd|int|desc=Tries to set your +ML device to a specified setting and reports on success.}} | ||
{{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items (see page for details).}} | {{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items (see page for details).}} | ||
==About Monsters== | |||
For all of the below functions that accept an optional monster parameter, the default value is your most recently-encountered monster (that means your current monster if you're in combat). | |||
{{Flink|monster [int]|get_monsters|location|desc=Returns a map of potential monsters at a given location.}} | |||
{{Flink|float [monster]|appearance_rates|location|desc=Returns a map of the expected frequency of each monster at the specified location under normal conditions (see page for details).}} | |||
{{Flink|int|monster_attack|{{opt|monster}}|desc=Returns the starting/current attack value of the specified monster.}} | |||
{{Flink|int|monster_defense|{{opt|monster}}|desc=Returns the starting/current defense value of the specified monster.}} | |||
{{Flink|int|monster_hp|{{opt|monster}}|desc=Returns the starting/current HP of the specified monster.}} | |||
{{Flink|int|expected_damage|{{opt|monster}}|desc=Returns the amount of damage you are expected to take each round from the specified monster.}} | |||
{{Flink|element|monster_element|{{opt|monster}}|desc=Returns the elemental alignment of the specified monster.}} |
Revision as of 13:14, 30 April 2010
boolean adventure( int, location )
boolean adventure( int, location, string )
boolean adv1( location, int, string )
void add_item_condition( int, item )
void council()
item guardians()
int tavern()
boolean entryway()
boolean hedgemaze()
boolean chamber()
location my_location()
void refresh_status()
buffer run_combat()
boolean retrieve_item( int, item )
boolean change_mcd( int )
boolean hermit( int, item )
About Monsters
For all of the below functions that accept an optional monster parameter, the default value is your most recently-encountered monster (that means your current monster if you're in combat).
monster [int] get_monsters( location )
float [monster] appearance_rates( location )
int monster_attack( [monster] )
int monster_defense( [monster] )
int expected_damage( [monster] )
element monster_element( [monster] )