SRL Archive - Help

(noob) How to check if something is in the right click menu


ragebugger

2012-06-25 21:38:27

How would I check if, say, "Examine Tree" were in the menu after right clicking a tree?

I imagine I would somehow use Function GetChooseOptions(TextType: string): Array of TOptions;

:bart:

Runaway

2012-06-25 21:46:30

WaitOption('xamin', 1000); <- Will search for the option with the "xamin" string in it for 1000 ms and click it if found.

WaitOptionMulti(['xami', 'mine', 'ree'], 1000); <- Same as above but will check for all of the specified strings.

riwu

2012-06-26 05:14:02

I think what he mean is just a function that checks if the option "Examine Tree" exists, but not selecting it. Use OptionsExist(['the texts'], false) will return the boolean but not do anything (not even moving the mouse) about the option.