Rolis
11-24-2011, 07:49 PM
I am writing a script and running into an issue that maybe someone can help me with.
For instance..
;myScript sapphire
match 'getItem', '#{script.vars[1]}'
matchwait
getItem:
fput "get #{script.vars[1]}
This is not what I am doing but an example of similar code- But the trouble comes in getting my match function to recognize my variable - I am not sure how it is stored by the word sapphire does not seem to trigger the function. Can I not use it this way? Any help would be much appreciated. Thank you.
For instance..
;myScript sapphire
match 'getItem', '#{script.vars[1]}'
matchwait
getItem:
fput "get #{script.vars[1]}
This is not what I am doing but an example of similar code- But the trouble comes in getting my match function to recognize my variable - I am not sure how it is stored by the word sapphire does not seem to trigger the function. Can I not use it this way? Any help would be much appreciated. Thank you.