Log in

View Full Version : ChooseOptionMutli



Footy
07-26-2012, 05:20 PM
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?

Brandon
07-26-2012, 05:26 PM
WaitOptionMulti(['Option1', 'Option2', 'Option3'], 600);

Will choose whichever is found first. Also you can do:


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..

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.

Footy
07-26-2012, 05:28 PM
That was rather easy. Thanks brandon!
E: Im using it to fish sharks and lobsters, so this will work perfectly. <3