PDA

View Full Version : Lich script help



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.

Sam
11-24-2011, 08:38 PM
Stop thinking in stormfront/wizard.

;alias set g=get \?

I know that's now what you're really trying to do, but just an example of how much easier it is than what you're showing there..


Also, use double quotes if you want to use a variable within the string.