Page 1 of 1

Custombind with Params

Posted: Tue Nov 23, 2004 11:11 pm
by JP5
If anyone has been having trouble with a custombind that has a MQ2 Param, most likely a toggle, I have a fix. Encountered the problem making a twitch macro.

Problem:
/custombind set Toggle ${If[${Toggle}==1,0,1]}
Will be parsed as
/custombind set Toggle 0 (or 1, but usually 0 is the default of integers)
therefore taking away the ability to toggle.

Solution:
/noparse /custombind set Toggle ${If[${Toggle}==1,0,1]}

Pretty sure this works, although I haven't tested.

Posted: Wed Nov 24, 2004 3:20 am
by fice
a_druid_00 mentions this on his raid druid package :P

Posted: Wed Nov 24, 2004 7:34 am
by A_Druid_00
I just toggle between 1 and 2 instead of 1 and 0, /shrug. I do it because they're called from an array tho.

Re: Custombind with Params

Posted: Sat Jan 03, 2026 12:40 am
by xyilla

Re: Custombind with Params

Posted: Sat Jan 03, 2026 12:41 am
by xyilla