So I've been trying to make a method to logically scan mobs and determine if they should be Momentum Struck.
What I have so far is
finditem %target G_8
if #findCnt > 0
{
if #findCnt > 2 && #findDist > 2
{
%target2 = #findID
research:
finditem %target G_1
if #findDist > 1 || #findID = %target2
{
ignoreitem #findid 2
goto research
}
if #findDist < 1
{
%tertiary = #findID
%target = %target2
%target2 = %tertiary
}
if ( %useLS = #true ) && && ( %spellTimer < #scnt2 ) && ( %target2 = %tertiary ) ;Dont mind the %useLS part
gosub execMS
}
Basically what I want it to do is, when it finds %target, search within 1 tile around myself for another target. If it finds a target around me, then I want it to attack the first target it found (range target) with momentum strike, which will in turn hit the target NEXT to me with momentum strike also.