• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Macro conditions?

Wealthmanager

banned
BANNED
Joined
Jun 3, 2014
RedCents
98¢
Are there boolean conditions to check if a macro is running and/or paused (mqp)? trying to find them and maybe put them into an mq2melee flag
 
This is a great thing to check... particularly since I use the /mqpause on and /mqpause off commands to move and reset camps. It would keep something from firing when the toons are moving :) (although, honestly, I don't know if I ever ran into that issue before)
 
have a MQ2HUD line to show the name of the currently running macro. And if it is my usual macro, have another line to tell if it's pause function is engaged.

Rich (BB code):
Macro1=3,110,111,0,250,0,${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
Macro2=3,10,111,225,250,225,MACRO RUNNING =
 
have a MQ2HUD line to show the name of the currently running macro. And if it is my usual macro, have another line to tell if it's pause function is engaged.

Rich (BB code):
Macro1=3,110,111,0,250,0,${If[${Macro.Name.NotEqual["NULL"]},${Macro.Name},]}
Macro2=3,10,111,225,250,225,MACRO RUNNING =

awesome ty

- - - Updated - - -

While I have this thread, how would I setup an if statement with ${Time}? to say /if ${Time} > 220000 || ${Time} < 100000 I want to set a condition that would work between 10 am and 10 pm, is that possible? I noticed ${Time} reports like 22:00:00 or 10:00:00
 
I believe I had tried to nest IF statements inside an IF statement (in an outer IF) in the true or false section before, and I think I had failed (can't remember entirely). However this thread made me want to try again. I had currently running mac already in my HUD, and I could have used a second line that took the same display space (as is customary) for PAUSED. But I hate incurring unnecessary tests, since I am already in a true/false defined decision branch. It just goes against efficient execution design.

This time around (again, fuzzy on the past details), this works:
Rich (BB code):
Macro1=3,4,600,100,0,255,0,${If[${Macro.Name.NotEqual["NULL"]} && ${Macro.Paused},${Macro.Name} PAUSED,${If[${Macro.Name.NotEqual["NULL"]}, ${Macro.Name},]}]}

This saves a decision path since the embedded IF only fires in the FALSE side of the outer IF. Now I have not only the mac running name, but whether it is paused (while still maintaining the mac name). This keeps me from having multiple HUD lines going to the same place and wasting execution overhead.

Thx for this thread, and making me revisit something I had previously succumbed to inefficiency before...

- - - Updated - - -

NOTE: I use a special HUD settings that not only allows me to have an extra position element, but also absolutely requires it. If your HUD is NOT setup this way, and you know who you are, then modify the positional/size/color etc portion to match your more normal HUD requirements. AGAIN, I have an extra positional element, count the commas in the beginning of the line. Mine will not work for you if you are not set up this way, so you must remove the extra element (easiest way is to copy in one of your line definitions over mine). The decision part will still work.
 
Question - Macro conditions?

Users who are viewing this thread

Back
Top
Cart