Page 1 of 1

Ok I admit it, I guess I am stupid

Posted: Thu Apr 29, 2004 10:04 pm
by Muffez
I have search the forums, looked at other examples, but yet I am unable to get anything to work with this bind anymore. I am sure its just not converted correctly. Any assistance would be great.

Code: Select all

/declare mainassist global
/custombind add setassist 
/custombind set setassist /multiline ; /varset mainassist ${Target.Name};/echo Main assist: @mainassist
/custombind add assistmain 
/custombind set assistmain /multiline ; /assist @mainassist;/echo Assisting @mainassist
/bind assistmain w 
/bind setassist o
Forgot to add...This code worked perfectly before this patch/MQ update.
Thanks in advance.

Posted: Thu Apr 29, 2004 10:10 pm
by ml2517
No clue if all of the bind stuff is correct but fixed the variable stuff:

Code: Select all

/declare mainassist string global 
/custombind add setassist 
/custombind set setassist /multiline ; /varset mainassist ${Target.Name};/echo Main assist: ${mainassist}
/custombind add assistmain 
/custombind set assistmain /multiline ; /assist ${mainassist};/echo Assisting ${mainassist}
/bind assistmain w 
/bind setassist o

Posted: Thu Apr 29, 2004 10:26 pm
by Muffez
Cool, thank you very much, and I now I see what part I was overlooking.

Posted: Fri Apr 30, 2004 11:01 am
by bohicaseti
This is just a guess, but I had to change all my /delcare global's to Outers, so wouldn't

Code: Select all

/declare mainassist string global
become?

Code: Select all

/declare mainassist string Outer
If this is not the case in this particular setup, I appologize, just offering my 2 cents.

Posted: Fri Apr 30, 2004 11:42 am
by Dulapore
How would Outer work since there is no macro running?

Posted: Fri Apr 30, 2004 12:18 pm
by bohicaseti
Doh! My bad, been in macro editing mode all morning and had me a good size brain fart. :oops:

Posted: Fri Apr 30, 2004 2:32 pm
by yesman
I'm trying to fix this myself.

Code: Select all

/declare mainassist string global


This is redundant, string is the default for /declare

...

Still, with the second /echo in it's still returning NULL. Assisting the "mainassist" manually to confirm if they have a target reaffirms that for some reason "mainassist" variable is not being held; it's just being used for the first line.