Adventuring: Difference between revisions
imported>Bale r15235: run_choice() and run_turn() |
imported>Bale No edit summary |
||
Line 1: | Line 1: | ||
{{Flink|boolean|adventure|int|location|desc=Visits the desired location the the desired number of times.}} | {{Flink|boolean| adventure|int|location|desc=Visits the desired location the the desired number of times.}} | ||
{{Flink|boolean|adventure|int|location|string|desc=Visits the desired location a specified number of times, using a combat filter function defined elsewhere in your script.}} | {{Flink|boolean| adventure|int|location|string|desc=Visits the desired location a specified number of times, using a combat filter function defined elsewhere in your script.}} | ||
{{Flink|boolean|adv1|location|int|string|desc=Adventure exactly once in the specified location (even if it uses no turns). Chained choice adventures '''are''' followed. Int overrides default settings, and string is a filter, same as in [[adventure|adventure()]]}} | {{Flink|boolean| adv1|location|int|string|desc=Adventure exactly once in the specified location (even if it uses no turns). Chained choice adventures '''are''' followed. Int overrides default settings, and string is a filter, same as in [[adventure|adventure()]]}} | ||
{{Flink|buffer|visit_url}} | {{Flink|buffer| visit_url}} | ||
{{Flink|buffer|visit_url|string}} | {{Flink|buffer| visit_url|string}} | ||
{{Flink|buffer|visit_url|string|boolean}} | {{Flink|buffer| visit_url|string|boolean}} | ||
{{Flink|buffer|visit_url|string|boolean|boolean|desc=Visits the specified address and returns the page source.}} | {{Flink|buffer| visit_url|string|boolean|boolean|desc=Visits the specified address and returns the page source.}} | ||
{{Flink|void|remove_item_condition|int|item|desc=Removes adventuring conditions.}} | {{Flink|void| remove_item_condition|int|item|desc=Removes adventuring conditions.}} | ||
{{Flink|void|add_item_condition|int|item|desc=Specifies adventuring conditions. With these in place, [[adventure|adventure()]] will successfully complete once the conditions are met.}} | {{Flink|void| add_item_condition|int|item|desc=Specifies adventuring conditions. With these in place, [[adventure|adventure()]] will successfully complete once the conditions are met.}} | ||
{{Flink|boolean|is_goal|item|desc=Checks if a given item is a goal.}} | {{Flink|boolean| is_goal|item|desc=Checks if a given item is a goal.}} | ||
{{Flink|boolean|goal_exists|string|desc=Checks if there is currently a given type of goal.}} | {{Flink|boolean|goal_exists|string|desc=Checks if there is currently a given type of goal.}} | ||
{{Flink|string [int]|get_goals|desc=Lists all current goals.}} | {{Flink|string [int]|get_goals|desc=Lists all current goals.}} | ||
Line 25: | Line 25: | ||
{{Flink|buffer|run_choice|desc=Chooses an option in the current choice adventure.}} | {{Flink|buffer|run_choice|desc=Chooses an option in the current choice adventure.}} | ||
{{Flink|buffer|run_turn|descwork as run_combat() or run_choice( -1 ) depending on whether you are in combat or in a choice.}} | {{Flink|buffer|run_turn|descwork as run_combat() or run_choice( -1 ) depending on whether you are in combat or in a choice.}} | ||
{{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.}} | {{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items.}} |
Revision as of 07:50, 13 March 2017
boolean adventure( int, location )
boolean adventure( int, location, string )
boolean adv1( location, int, string )
buffer visit_url()
buffer visit_url( string )
buffer visit_url( string, boolean )
buffer visit_url( string, boolean, boolean )
void remove_item_condition( int, item )
void add_item_condition( int, item )
boolean is_goal( item )
boolean goal_exists( string )
string [int] get_goals()
string get_counters( string, int, int )
void council()
item guardians()
int tavern()
boolean entryway()
boolean hedgemaze()
boolean chamber()
location my_location()
void refresh_status()
buffer run_combat()
buffer run_choice()
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).
int jump_chance( [monster], [int], [int] )
int jump_chance( location, [int], [int] )
monster last_monster()
monster [int] get_monsters( location )
float [monster] appearance_rates( location, [boolean] )
int monster_attack( [monster] )
int monster_defense( [monster] )
int monster_initiative( [monster] )
phylum monster_phylum( [monster] )
int expected_damage( [monster] )
element monster_element( [monster] )
monster image_to_monster( string )
boolean is_banished( monster )