I modified the script, but don't remember all the changes. The most significant change was moving
Code:
familiar ItemFam = $familiar[none];
and
Code:
familiar StatFam = $familiar[none];
to the beginning of the script which put an end to this error:
Unknown variable 'ItemFam' (testfam.ash, line 51)
Unknown variable 'StatFam' (testfam.ash, line 54)
line numbers wont match what you saw for an error because I had already made some changes for testing.
output of attached script:
Best available item drop familiar: Coffee Pixie
Blood-Faced Volleyball true
Cheshire Bat false
Cymbal-Playing Monkey false
Hovering Sombrero true
Nervous Tick false
Best available stat gain familiar: Hovering Sombrero
Putting spunky not Skunky the Coffee Pixie back into terrarium...
Taking Wind take me away the Hovering Sombrero out of terrarium...
miniature gravy-covered maypole is better than (none).
Switching items...
Stealing miniature gravy-covered maypole from Coffee Pixie...
Putting on miniature gravy-covered maypole...
Equipment changed.
which I doubt is exactly what you want, but it's doing something.
heh Holatuwol beat me to it!