In-combat Consulting: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Efilnikufecin
No edit summary
 
imported>Raeith
No edit summary
Line 9: Line 9:


'''boolean use_skill( int count, skill touse )'''<br />
'''boolean use_skill( int count, skill touse )'''<br />
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle. See <a href="index2a9c.html?page_id=9">Part 4 - Skills and Effects</a>
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.<br />
See [[%28ASHRM%29_Skills_and_Effects]]

Revision as of 10:17, 9 January 2007

These functions are for use when handling a battle in a script using your custom combat settings. There is very little documentation of how to do this, and for most people these functions are useless.

string attack()
string runaway()
string use_skill( skill touse )
string throw_item( item tothrow )
string throw_items( item tothrow1, item tothrow2 )
Returns a string containing the html response from sending the appropriate url request for the associated action while in battle.

boolean use_skill( int count, skill touse )
Will loop the specified number of times using the specified skill, never reconsulting the script until the loop is complete. This function is handled differently when not in battle.
See (ASHRM)_Skills_and_Effects