Garden Info

Ethelred

Member
Is there a way to capture the output of the "garden" cli command in an ash string? Or some other way to get that information that I'm not aware of? I'd like to write a small utility script to see if I have enough fertilizer to produce a very tall grass crop, and if so, use it and harvest the familiar. But I'm currently stuck on how to get the current status. I tried poking around in the mini-browser to see if I could figure out the parameters for a visit_url command but only succeeded in harvesting the current crop, not what I wanted to do.

Thanks in advance for any help on this somewhat minor problem.
 

Darzil

Developer
ash get_campground() returns, among other things, packet of tall grass seeds => 4 when I have 4 grass.
 

Ethelred

Member
ash get_campground() returns, among other things, packet of tall grass seeds => 4 when I have 4 grass.

When I have 1 or 2 grass, I get "packet of tall grass seeds" which led me to believe it wasn't working at all. Any chance that could be tweaked to actually return a value of 0 to 8? Thanks.

EDIT: Actually I just checked on another char and I only get "packet of tall grass seeds" for any value up to and including the very tall grass at 8. How do get the ">= 4" to show up?
 
Last edited:

Veracity

Developer
Staff member
It does return a value of 0 to 8.

I just harvested my garden.

Code:
[color=green]> ash get_campground()[/color]

Returned: aggregate int [item]
Certificate of Participation => 1
Frobozz Real-Estate Company Instant House (TM) => 1
Meat maid => 1
Discount Telescope Warehouse gift certificate => 1
E-Z Cook™ oven => 1
My First Shaker™ => 1
potted tea tree => 1
haunted doghouse => 1
Witchess Set => 1
Source terminal => 1
Asdon Martin keyfob => 1
packet of tall grass seeds => 0

[color=green]> ash get_campground()[$item[packet of tall grass seeds]][/color]

Returned: 0
 

Ethelred

Member
It does return a value of 0 to 8.

I just harvested my garden.

Code:
[COLOR=green]> ash get_campground()[/COLOR]

Returned: aggregate int [item]
Certificate of Participation => 1
Frobozz Real-Estate Company Instant House (TM) => 1
Meat maid => 1
Discount Telescope Warehouse gift certificate => 1
E-Z Cook™ oven => 1
My First Shaker™ => 1
potted tea tree => 1
haunted doghouse => 1
Witchess Set => 1
Source terminal => 1
Asdon Martin keyfob => 1
packet of tall grass seeds => 0

[COLOR=green]> ash get_campground()[$item[packet of tall grass seeds]][/COLOR]

Returned: 0

Thanks for your help. Everything is working ok. Apparently I'm a doofus who is map impaired and can't tell the difference between the name and the value of map entry. Nothing to see here. Move along.
 
Top