Adventuring: Difference between revisions
No edit summary |
Add "Choice Adventures" section |
||
Line 42: | Line 42: | ||
{{Flink|monster|image_to_monster|string|desc=Looks up monster by image name.}} | {{Flink|monster|image_to_monster|string|desc=Looks up monster by image name.}} | ||
{{Flink|boolean|is_banished|monster|desc=Returns true if the specified monster is banished}} | {{Flink|boolean|is_banished|monster|desc=Returns true if the specified monster is banished}} | ||
==Choice Adventures== | |||
{{FunctionEmbed|available_choice_options|format=signature|desc=yes}} | |||
{{flink|boolean|choice_follows_fight|desc=Returns <code>true</code> if the last finished combat is about to lead into a choice adventure.}} | |||
{{flink|boolean|handling_choice|desc=Returns <code>true</code> if you are currently in a choice.}} | |||
{{flink|int|last_choice|desc=Returns the ID of the current (or last) choice adventure you encountered.}} | |||
{{flink|buffer|run_choice|int|desc=Run the current choice adventure by selecting a choice number.}} | |||
==Misc.== | ==Misc.== |
Revision as of 07:05, 22 December 2020
boolean adventure( int, location )
boolean adventure( int, location, string )
boolean adv1( location, int, string )
- Returns the original HTML source of the page being overridden inside a relay override script.
buffer visit_url( string, boolean?, boolean? )
- Visits a web page and returns its HTML source.
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()
buffer run_turn()
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 )
Choice Adventures
string [int] available_choice_options( boolean? )
- Returns all available choice options in the current (or last) choice adventure the player encountered.
boolean choice_follows_fight()
true
if the last finished combat is about to lead into a choice adventure.boolean handling_choice()
true
if you are currently in a choice.int last_choice()
buffer run_choice( int )