• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Help with Unit Counting Rule

Jamz

Well-known member
Ok, I must be missing something obvious, can someone help? I'm using the exact same script in another Roster but it doesn't work in this one. You can see the Accrued Tags and the neVanguard = 1 and neRadSquad = 2, so why does the rule come back as invalid?

(The zip is a full screenshot of my open windows if it helps)



Rule: neVanguard Scope:Roster Priority: 1

if (tagis[unitid.neVanguard] = 0) then
@valid = 1
done
endif

var x as number
var y as number

x = tally[unit:unitid.neVanguard & !runtime.child]
y = tally[unit:unitid.neRadSquad & !runtime.child]

if ( x <= y ) then
@valid = 1
endif
 

Attachments

  • AB_Help.zip
    AB_Help.zip
    481.2 KB · Views: 0
  • Tag_Counts.jpg
    Tag_Counts.jpg
    70.7 KB · Views: 4
Back
Top