Ashref

From Kolmafia
Revision as of 02:27, 13 July 2008 by imported>Alhifar (→‎Example: updated to 6192)
Jump to navigation Jump to search

ashref

AshRef is not an actual ash function, it is a cli function.

Enter "ashref" into the Graphical cli with no parameters will display a list of all available ASH scripting functions.

Entering "ashref " and a partial command name will display all commands matching the partial command name entered.


Example

Entering "ashref string" into the GCLI in subversion 6192 yields:

void enable( string )
void disable( string )
boolean user_confirm( string )
void logprint( string )
void print( string )
void print( string, string )
void print_html( string )
void abort( string )
void abort( )
boolean cli_execute( string )
buffer load_html( string )
void write( string )
void writeln( string )
string form_field( string )
buffer visit_url( )
buffer visit_url( string )
void wait( int )
string to_string( any )
boolean to_boolean( any )
int to_int( any )
float to_float( any )
item to_item( string )
item to_item( int )
class to_class( string )
stat to_stat( string )
skill to_skill( int )
skill to_skill( string )
skill to_skill( effect )
effect to_effect( int )
effect to_effect( string )
effect to_effect( skill )
location to_location( string )
familiar to_familiar( int )
familiar to_familiar( string )
monster to_monster( string )
slot to_slot( item )
string to_url( location )
string today_to_string( )
int moon_phase( )
int moon_light( )
stat stat_bonus_today( )
stat stat_bonus_tomorrow( )
string [int] session_logs( int )
string [int] session_logs( string, int )
boolean adventure( int, location )
void add_item_condition( int, item )
boolean buy( int, item )
boolean create( int, item )
boolean use( int, item )
boolean eat( int, item )
boolean drink( int, item )
boolean put_closet( int, item )
boolean put_shop( int, int, item )
boolean put_stash( int, item )
boolean put_display( int, item )
boolean take_closet( int, item )
boolean take_storage( int, item )
boolean take_display( int, item )
boolean take_stash( int, item )
boolean autosell( int, item )
boolean hermit( int, item )
boolean retrieve_item( int, item )
int [item] get_inventory( )
boolean is_npc_item( item )
boolean is_tradeable( item )
item daily_special( )
boolean refresh_stash( )
int available_amount( item )
int item_amount( item )
int closet_amount( item )
int creatable_amount( item )
int [item] get_ingredients( item )
int storage_amount( item )
int display_amount( item )
int shop_amount( item )
int stash_amount( item )
int pulls_remaining( )
int stills_available( )
boolean have_mushroom_plot( )
boolean refresh_status( )
boolean restore_hp( int )
boolean restore_mp( int )
string my_name( )
string my_id( )
string my_hash( )
boolean in_muscle_sign( )
boolean in_mysticality_sign( )
boolean in_moxie_sign( )
boolean in_bad_moon( )
class my_class( )
int my_level( )
int my_hp( )
int my_maxhp( )
int my_mp( )
int my_maxmp( )
stat my_primestat( )
int my_basestat( stat )
int my_buffedstat( stat )
int my_meat( )
int my_adventures( )
int my_turncount( )
int my_fullness( )
int fullness_limit( )
int my_inebriety( )
int inebriety_limit( )
int my_spleen_use( )
int spleen_limit( )
boolean can_eat( )
boolean can_drink( )
int turns_played( )
boolean can_interact( )
boolean in_hardcore( )
boolean have_skill( skill )
int mp_cost( skill )
int turns_per_cast( skill )
int have_effect( effect )
boolean use_skill( int, skill )
boolean use_skill( int, skill, string )
buffer attack( )
buffer steal( )
buffer runaway( )
buffer use_skill( skill )
buffer throw_item( item )
buffer throw_items( item, item )
buffer run_combat( )
boolean can_equip( item )
boolean equip( item )
boolean equip( slot, item )
item equipped_item( slot )
boolean have_equipped( item )
boolean outfit( string )
boolean have_outfit( string )
familiar my_familiar( )
boolean have_familiar( familiar )
boolean use_familiar( familiar )
item familiar_equipment( familiar )
int familiar_weight( familiar )
int weapon_hands( item )
string item_type( item )
stat weapon_type( item )
int get_power( item )
void council( )
int current_mcd( )
boolean change_mcd( int )
boolean have_chef( )
boolean have_bartender( )
boolean contains_text( string, string )
int extract_meat( string )
int [item] extract_items( string )
int length( string )
int index_of( string, string )
int index_of( string, string, int )
int last_index_of( string, string )
int last_index_of( string, string, int )
string substring( string, int )
string substring( string, int, int )
string to_lower_case( string )
string to_upper_case( string )
buffer append( buffer, string )
buffer insert( buffer, int, string )
boolean replace( buffer, int, int, string )
buffer delete( buffer, int, int )
buffer append_tail( matcher, buffer )
buffer append_replacement( matcher, buffer, string )
matcher create_matcher( string, string )
boolean find( matcher )
boolean start( matcher )
boolean end( matcher )
boolean group( matcher )
boolean group( matcher, int )
boolean group_count( matcher )
string replace_first( matcher, string )
string replace_all( matcher, string )
matcher reset( matcher )
matcher reset( matcher, string )
buffer replace_string( buffer, string, string )
buffer replace_string( string, string, string )
string [int] split_string( string )
string [int] split_string( string, string )
string [int, int] group_string( string, string )
void chat_reply( string )
boolean entryway( )
boolean hedgemaze( )
item guardians( )
boolean chamber( )
int tavern( )
int random( int )
int round( float )
int truncate( float )
int floor( float )
int ceil( float )
float square_root( float )
string url_encode( string )
string url_decode( string )
string get_property( string )
void set_property( string, string )
int count( aggregate )
void clear( aggregate )
boolean file_to_map( string, aggregate )
boolean file_to_map( string, aggregate, boolean )
boolean map_to_file( aggregate, string )
boolean map_to_file( aggregate, string, boolean )
location my_location( )
monster [int] get_monsters( location )
int expected_damage( )
int expected_damage( monster )
int monster_level_adjustment( )
int weight_adjustment( )
int mana_cost_modifier( )
int raw_damage_absorption( )
float damage_absorption_percent( )
int damage_reduction( )
float elemental_resistance( element )
float elemental_resistance( )
float elemental_resistance( monster )
float combat_rate_modifier( )
float initiative_modifier( )
float experience_bonus( )
float meat_drop_modifier( )
float item_drop_modifier( )
int buffed_hit_stat( )
stat current_hit_stat( )
element monster_element( )
element monster_element( monster )
int monster_attack( )
int monster_attack( monster )
int monster_defense( )
int monster_defense( monster )
int monster_hp( )
int monster_hp( monster )
int item_drops( )
int item_drops( monster )
boolean will_usually_miss( )
boolean will_usually_dodge( )
float numeric_modifier( string )
float numeric_modifier( item, string )
float numeric_modifier( effect, string )
float numeric_modifier( skill, string )
boolean boolean_modifier( string )
boolean boolean_modifier( item, string )
effect effect_modifier( item, string )
class class_modifier( item, string )
stat stat_modifier( effect, string )