I got a script with the following code, which tells me all the pets in the group and their respective PctHPs:
It seems to work correctly. See screenshot below:

Well, now that I seem to have every pet's health, I would like to target whichever pet is lowest in health.
Any suggestion? Thanks!
Code:
for i=0,mq.TLO.Group.Members() do
print('Pet ', mq.TLO.Group.Member(i).Pet.CleanName() , ' is at ', mq.TLO.Group.Member(i).Pet.PctHPs(), '% health')
end
It seems to work correctly. See screenshot below:

Well, now that I seem to have every pet's health, I would like to target whichever pet is lowest in health.
Any suggestion? Thanks!


