re : /repeat | Thu Jun 24 05:18:03 2010 MST |
Vor | admin | offline |  |
| what i do is /set VARPID $[repeat(-delay 1 action)] so something like /set ROBEPID $[repeat(-30 1 !check robe)] that way i can shut it off if i want to by doing /kill %ROBEPID the 1 in this case tells it to only fire once. |
>re : /repeat | Thu Jun 24 13:37:07 2010 MST |
| On Thu Jun 24 05:18:03 2010 Vor wrote post #2: > what i do is /set VARPID $[repeat(-delay 1 action)] > so something like /set ROBEPID $[repeat(-30 1 !check robe)] > that way i can shut it off if i want to by doing /kill %ROBEPID > the 1 in this case tells it to only fire once. This is how I handle it with my vuln buttons, so that I don't get a jillion "OMG VULN IS ABOUT TO FALL" messages if I refresh the vuln before it goes /def key_f1=/kill %vuln1PID%;!cast %vuln1%;/set vuln1PID $[repeat( "-42 1 /echo -aBCRed $[toupper({vuln1}, 1)] falling.") ] |
>re : /repeat | Thu Jun 24 14:21:50 2010 MST |
| Ah, yeah that worked. Thanks people! =)
What function has $[ ... ] ? |
>>re : /repeat | Thu Jun 24 21:39:09 2010 MST |
| the whole $[...] lets you call a macro from within a macro. in this case you are calling /repeat from within /set. (possibly not the proper phrasing, but if you are trying to /macro blah /macro, you do /macro blah $[macro()] instead) |
>>>re : /repeat | Thu Jun 24 21:40:16 2010 MST |
| well, /repeat and repeat() are the same thing. the $[...] is telling it to evaluate it for purposes of using it within /set. that may be a better explanation. |
|