Run combat

From Kolmafia
Revision as of 18:44, 10 March 2010 by imported>StDoodle (Created page with '{{ #vardefine:name|run_combat}}{{ #vardefine:return_type|buffer}}{{ FunctionPage| name={{#var:name}}| function_category=Adventuring| function1={{Function| name={{#var:name}}| a…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

buffer run_combat()

Proceeds to run a combat using your current KoLmafia settings. This function returns the text of every round of combat. For use with visit_url() to handle combats that are initiated during a page load.

See Also

adventure() | adv1() | visit_url()

Special

Will return the text of the last combat encounter when called independently of a fight page.


Attention KoLmafia Experts!

We need your help; some details of this function's operation are unknown or unclear.

The following specific questions have been raised:

  • Does it return all of the fight text, or just the last round?
  • Any further tips on how this should actually be used, and when?