Results 1 to 3 of 3

Thread: ChooseOptionMutli

  1. #1
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChooseOptionMutli

    I've been searching for quite a while how to use this, but I cant find an answer. I know you use a TStringArray, but I have no Idea how to make one of those. Could someone quickly explain how to use it to find one of two options in the chooseoption menu?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Simba Code:
    WaitOptionMulti(['Option1', 'Option2', 'Option3'], 600);
    Will choose whichever is found first. Also you can do:

    Simba Code:
    WaitOptionMulti(['ast', 'ral', 'ru', 'une', 'law', 'ear', 'th ru'], 600);  //will find astral rune, earth rune, etc.. notice how I split the options? That is an array of strings.

    Another example..
    Simba Code:
    var
        Meh: TStringArray;
    begin
        Meh := ['o1', 'o2', 'o3'];
        WaitOptionMulti(Meh, 600);
    end.

    You can even use it as function parameters. Do what your mind can imagine.
    Last edited by Brandon; 07-26-2012 at 05:28 PM.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    That was rather easy. Thanks brandon!
    E: Im using it to fish sharks and lobsters, so this will work perfectly. <3
    Last edited by Footy; 07-26-2012 at 05:33 PM.
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

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
  •