TellMeWhen

TellMeWhen

24M Downloads

[CF 1585] Multiple Enemies in Range

tmw-issue-import opened this issue ยท 5 comments

commented

Is there a condition to show icon only if multiple enemies are within range? Thanks :)


Posted by CurseForge user Talason84891 | Imported from CurseForge issue #1585 | Raw

commented

bump :)


Posted by CurseForge user Talason84891

commented

1) All tickets are shown in order of their submission, bumping isn't necessary

 

2) Ever since...I think about Tomb of Sargeras (or sometime last xpac in general I think) Blizzard broke the ability for addons to precisely measure range, but I believe it still works at an imprecise level. You could probably get something about right by stringing together the Unit Range condition in multiple conjunctions with Arena1/2/3 (I assume you want this for arena if you're the same Talason as I think you are). 

 

^1^T^SType^Sconditionicon ^SConditions^T ^N1^T ^SType^SLIBRANGECHECK ^SOperator^S<= ^SUnit^Sarena1 ^SLevel^N7 ^SPrtsBefore^N1 ^t^N2^T ^SType^SLIBRANGECHECK ^SPrtsAfter^N1 ^SOperator^S<= ^SUnit^Sarena2 ^SLevel^N7 ^t^N3^T ^SType^SLIBRANGECHECK ^SOperator^S<= ^SUnit^Sarena1 ^SLevel^N7 ^SPrtsBefore^N1 ^SAndOr^SOR ^t^N4^T ^SType^SLIBRANGECHECK ^SPrtsAfter^N1 ^SOperator^S<= ^SUnit^Sarena3 ^SLevel^N7 ^t^N5^T ^SType^SLIBRANGECHECK ^SOperator^S<= ^SUnit^Sarena2 ^SLevel^N7 ^SPrtsBefore^N1 ^SAndOr^SOR ^t^N6^T ^SType^SLIBRANGECHECK ^SPrtsAfter^N1 ^SOperator^S<= ^SUnit^Sarena3 ^SLevel^N7 ^t^Sn^N6 ^t^SCustomTex^SThrash ^SStates^T ^N1^T ^t^N3^T ^t^N4^T ^t^t^SEnabled^B ^t^N85501^S~`~| ^Sicon^^

 

Something kinda like this. I don't know LUA so I assume you could make something much better and much cleaner looking if you did. Might need to crank the range on each condition down to 6 since like I said before, addons gleaning precise range information can be fucky, so it's best to set it on the lower side. If you wanted to add a condition so it's not just up any time people are in range, I'd probably move all the range related conditions to the group conditions then change the icon conditions to something like "debuff duration on A12/3/ <= 4s" or something like that.


Posted by CurseForge user Jalopyy

commented

This condition type is covered in my addon which is complementary to TMW - TMW_Script_Tools (among other things). There are some examples on how to use it in the description


Posted by CurseForge user ariehg

commented

To add to what Jaloppy said - you can only measure distance from player, not from target, so this will work great for melee classes but not so much for ranged. 


Posted by CurseForge user ariehg

commented

Works perfect, thanks a ton for the addon!


Posted by CurseForge user Talason84891