Get related

From Kolmafia
Revision as of 21:56, 25 February 2010 by imported>Bale (Problem with the return type...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

Retrieves some variable-length internal data that isn't readily readable via file_to_map().

Code Sample

If you need back pepper, this will try to zap something into it.

foreach thing in get_related($item[black pepper], "zap")
   if(item_amount(thing)> 0) {
      cli_execute("zap "+thing);
      break;
   }