Results 1 to 5 of 5

Thread: Garden Info

  1. #1
    Senior Member
    Join Date
    Sep 2006
    Posts
    349

    Default Garden Info

    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.

  2. #2
    Developer
    Join Date
    Apr 2010
    Posts
    4,296

    Default

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

  3. #3
    Senior Member
    Join Date
    Sep 2006
    Posts
    349

    Default

    ash get_campground() returns, among other things, packet of tall grass seeds => 4 when I have 4 grass.
    Originally Posted by Darzil View Post
    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 by Ethelred; 03-27-2018 at 12:55 AM. Reason: Additional info

  4. #4
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,274

    Default

    It does return a value of 0 to 8.

    I just harvested my garden.

    Code:
    > ash get_campground()
    
    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
    
    > ash get_campground()[$item[packet of tall grass seeds]]
    
    Returned: 0
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  5. #5
    Senior Member
    Join Date
    Sep 2006
    Posts
    349

    Default

    It does return a value of 0 to 8.

    I just harvested my garden.

    Code:
    > ash get_campground()
    
    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
    
    > ash get_campground()[$item[packet of tall grass seeds]]
    
    Returned: 0
    Originally Posted by Veracity View Post
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •