function main() { variable bool Agg = FALSE do { if ${Target(exists)} && ${Target.Target.GUID.Equal[${Me.GUID}]} && !${Agg} { echo ">${Target.Name}< ${Me.Level} ${Target.Level} ${Target.Distance}" Agg:Set[TRUE] } if !${Target(exists)} && ${Agg} { Agg:Set[FALSE] } waitframe } while (1) }