Results 1 to 7 of 7

Thread: Help with Simple Script

  1. #1

    Default Help with Simple Script

    Hello, I am kind of new to scripting and slowly getting the hang of it. I am trying to make a simple CLI script that will adventure in the Guano Junction until I have obtained 10 briefcases. I am not quite sure what to do with the conditions add thing. Do I put it before "adventure guano junction" or after? Please help! When I try anything, and use it, it says "Nothing more to do here.", and it hasn't even adventured once.

  2. #2
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default Re: Help with Simple Script

    You list conditions before you adventure.

    I suspect the reason it says that you're done is because you already have 10 briefcases. If you want 10 briefcases in addition to the ones you already have then say "+10" for the quantity.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  3. #3

    Default Re: Help with Simple Script

    Thanks, but now it says,"[+5 briefcase has no matches] this is my code.

    conditions add +5 briefcase
    adventure 20 Guano Junction

  4. #4
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,558

    Default Re: Help with Simple Script

    I don't know why that's not working... but a way around it would be to put all your briefcases in your closet before adventuring:

    closet put * briefcase
    conditions add 5 briefcase
    adventure 20 guano junction
    closet take * briefcase
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  5. #5
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,287

    Default Re: Help with Simple Script

    [quote author=zarqon link=topic=2107.msg10693#msg10693 date=1230151947]
    I don't know why that's not working... but a way around it would be to put all your briefcases in your closet before adventuring:
    [/quote]

    Dang. Just tried it out. It's not working for me either. This used to work, right? Is something buggy?
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


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

    Default Re: Help with Simple Script

    I just looked at the code and it works like this:

    condition set 5 briefcase

    ... means get 5 briefcases including ones you already have.

    condition add 5 briefcase

    ... means get 5 more briefcases

    It doesn't look like "+" was ever usable in the conditions command. That is the syntax you use in the Goals field on the Adventure Frame. If you say "+5 x", it turns into "add 5 x". If you simply say "5 x", it turns into "set 5 x".

    The following should do what you asked for:

    condition add 5 briefcase
    adventure 20 Guano Junction
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  7. #7

    Default Re: Help with Simple Script

    Yeah, I figured it all out. But since you need the air freshener to adventure in the Guano Junction, i added equpping that into my script. There's one problem. How do I make it so if you already have it equipped, it goes to the next instruction? Here is my current script.

    acquire Pine-Fresh air freshener
    equip Pine-Fresh air freshener
    conditions add 5 briefcase
    adventure 20 Guano Junction

Similar Threads

  1. Replies: 4
    Last Post: Yesterday, 11:16 PM
  2. Simple script for the Haunted House
    By ElCarrot in forum Turn-Burning Scripts
    Replies: 5
    Last Post: 10-26-2011, 07:56 PM
  3. Simple Adventure Script
    By TomServo in forum Scripting Discussion
    Replies: 8
    Last Post: 02-01-2007, 11:43 PM
  4. Simple kmail script
    By LucySpace in forum Scripting Discussion
    Replies: 4
    Last Post: 01-28-2007, 09:51 PM
  5. simple Haunted Pantry Script.
    By hauntedguy in forum Scripting Discussion
    Replies: 33
    Last Post: 04-27-2006, 08:49 PM

Posting Permissions

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