I think retrieve_item() unequips the umbrella if there aren't any spare in inventory.
Try with this:
Try with this:
Code:
int [item] Sewer_Items;
Sewer_Items[$item[sewer wad]] = 1;
Sewer_Items[$item[unfortunate dumplings]] = 1;
Sewer_Items[$item[bottle of Ooze-O]] = 1;
Sewer_Items[$item[oil of oiliness]] = 3;
Sewer_Items[$item[gatorskin umbrella]] = 1;
foreach itm, qty in Sewer_Items {
if ( itm == $item[gatorskin umbrella] && have_equipped(itm) )
qty = qty - 1;
if ( item_amount(itm) < qty )
if( !retrieve_item( qty, itm ) )
abort( "Couldn't acquire enough "+ to_plural(itm) +"." );
}
if( !have_equipped($item[gatorskin umbrella] ))
equip( $item[gatorskin umbrella] );
Last edited: