ANother Q:

I think retrieve_item() unequips the umbrella if there aren't any spare in inventory.
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:
Ok error #1..in line 9 it should be

Code:
 if ( itm == $item[gatorskin umbrella] && have_equipped( $item[gatorskin umbrella] ))

not

Code:
 if ( itm == $item[gatorskin umbrella] && have_equipped( $item[gatorskin umbrella] )

also after i fix that i get a error

Code:
Unknown variable 'itm' (SewerAdventure.ash, line 11)

Is there a way to get Mafia to check the DC for missing items?
 
Last edited:
Back
Top