Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
MSBoy1
- a lesser mummy

- Posts: 57
- Joined: Mon May 19, 2003 3:42 pm
- Location: Mississippi
Post
by MSBoy1 » Tue Jun 03, 2003 1:32 pm
Is it possible to get a characters health percentage if they are out of the group without targeting that person?
Similarly, is it possible to get a character's pet's health if they are outside the group without having to target the pet?
If a player is outside of the group, I can't seem to get a health update unless I target them. I either get 0 or 100 depending on how I go about it.
My wife plays a mage and I have a cleric to help her level by keeping her and her pet healed. I sometimes play other characters on another computer, so it would be very helpful if I didn't have to devote as much attention to the cleric that is healing my wife's mage and her pet.
Any suggestions would be very welcome :)
Thanks in advance.
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Tue Jun 03, 2003 2:02 pm
Don't understand. If the cleric is just healing the mage, why can't the cleric have the mage targetted?
MQ2: Think of it as Evolution in action.
-
MSBoy1
- a lesser mummy

- Posts: 57
- Joined: Mon May 19, 2003 3:42 pm
- Location: Mississippi
Post
by MSBoy1 » Tue Jun 03, 2003 2:35 pm
Because I want to heal the mage and the mages pet.
My wife is not the best player and tends to get beat on some :)
-
MSBoy1
- a lesser mummy

- Posts: 57
- Joined: Mon May 19, 2003 3:42 pm
- Location: Mississippi
Post
by MSBoy1 » Tue Jun 03, 2003 2:36 pm
Another case would be where you want to monitor two different people's health that are not in your group.
-
Zxeses
- a ghoul

- Posts: 103
- Joined: Tue Jan 07, 2003 4:17 pm
Post
by Zxeses » Tue Jun 03, 2003 2:56 pm
I hate to say this but...
Perhaps the solution is to simply rotate among a preselected list of "targets", perhaps given as a command-line arugment when running the macro.
The macro would target get PC/NPC every 1 second, and endlessly rotate (not too fast, put a slow down in there, but still check for events)
and then /if target < xx%, do the healing...
Its kinda an ugly idea, but it would work.
-
MSBoy1
- a lesser mummy

- Posts: 57
- Joined: Mon May 19, 2003 3:42 pm
- Location: Mississippi
Post
by MSBoy1 » Tue Jun 03, 2003 3:13 pm
Yeah Zxe, that is what I have right now. It just cycles from my wife to her pet and heals accordingly. It is kind of ugly.
I guess the reason you don't have to target someone in the group to get health updates is because you are already getting the health updates in the group window.
Thanks for the responses.
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Tue Jun 03, 2003 3:36 pm
There's not always a "pretty" solution, given the limits of the scripting language. I should know, most of my macros are brute force. They get the job done, but they are hardly elegant.
Frankly, what difference does it make? As long as the job gets done does it really matter if the script is nice and tidy?
Elegant code is for the actual program IMO (so please don't take a look at the location parser too closely :) ). As long as the macro works I don't really care if it looks nice or not.
MQ2: Think of it as Evolution in action.