Results 1 to 5 of 5

Thread: Anyone give me a example of a script telling its self to bank?

  1. #1
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default Anyone give me a example of a script telling its self to bank?

    Right, I'm making a swamp toad picker, but could someone please give me a example of a part in a script when it tells it to bank like when it has fullinvent it knows to walk to the bank?

    Thanks!

  2. #2
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Just like a
    Simba Code:
    repeat
    blahblah
    until (InvFull);

    Would that work for what you're doing?

  3. #3
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    I assume so and then il just loop the whole processes together collecting, walking, banking, walking back etc?

  4. #4
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Yeah like for example your main loop could look like this:

    Simba Code:
    begin
      WalkToSpot;
      repeat
        Collect;
      until (InvFull)
      WalkToBank;
    end.


    Or you could put the repeat in the procedure itself.

  5. #5
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Alright Griff I think I got it now, Thanks for your help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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