Sushi mat detection

Winterbay

Active member
I am working on a script to help you choose sushis to consume and am trying to incorporate that into a local copy of farm.ash to make underwater farming slightly less annoying. However in order for the script to be general enough I need to be able to detect if the player in question has a sushi rolling mat.

Before the changes to the cooking system this was easy via an inventory check for the mat but since the mat now resides in the kitchen I wonder if there is any way (without using a visit_url() for the kitchen and parsing the result for mats to tell if a person has a mat or not.
A quick search through the preferences did not show anything.
 

Bale

Minion
The function you're looking for is get_campground().

Just check if get_campground() contains $item[sushi-rolling mat]

Code:
[COLOR="#808000"]> ash get_campground()[/COLOR]

Returned: aggregate int [item]
Certificate of Participation => 1
Dramatic™ range => 1
Feng Shui for Big Dumb Idiots => 1
Frobozz Real-Estate Company Instant House (TM) => 1
Queue Du Coq cocktailcrafting kit => 1
bartender-in-the-box => 1
chef-in-the-box => 1
clockwork maid => 1
pagoda plans => 1
sushi-rolling mat => 1

[COLOR="#808000"]> ashq print(get_campground() contains $item[sushi-rolling mat])[/COLOR]

true
 
Last edited:
Top