MQ2WorstHurt

From the wonderful RedGuides Wiki
MQ2WorstHurt
Finds the most injured member of your party, xtar list or pet
View details
Authors alynel, Sic, Knightly, dannuic
Software type Plugin


Maintained Yes and supported
Acknowledgements toots
Links

🏠Resource (review)
🤝Support •🛠️Repository

This plugin replaces the forloops to find the worsthurt member of your party, xtar list or pet. You call the TLO with the parameters and it returns a spawns name, which can be manipulated for any usage.

Commands

Settings

For example, this is all the code I have in my kiss mods to handle all single target healing, and it covers a full xtar list, party members and pets. It is incredibly fast.

/if ((${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Pet]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Corpse]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} <= ${Math.Calc[${${Spawn[${WorstHurt[both,1,200,TRUE]}].Class.ShortName}Point}*.${tmpHealOverride}]}) || (${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.Equal[Pet]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].Type.NotEqual[Corpse]} && ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} <= ${Math.Calc[${PetPoint}*.${tmpHealOverride}]})) {
        /call newSingleHeal "${Spawn[${WorstHurt[both,1,200,TRUE]}].CleanName}" "${Spawn[${WorstHurt[both,1,200,TRUE]}].Type}" ${Spawn[${WorstHurt[both,1,200,TRUE]}].PctHPs} 1 G
    }

This is the syntax,

${WorstHurt[<group|xtarget|both>,<n>,<radius>,<includePets>]}

See also


Top-Level Object(s)

TLOs added by MQ2WorstHurt:

TLO Data Type(s) Description
WorstHurt spawn Helps find the "worst hurt" member of your party, xtar list or pet.