zaytsev
Posts: 99
Joined: 6/16/2014 Status: offline
|
darn , you've beat me to it found it , crude (my 1st steps in lua) , but somehow working but, Thanks for a = 1,3 do
u = ScenEdit_GetUnit({name="Eyeball" .. (" #"..a)})
print (u)
end still cant get regexp working .. need more try'n'error i guess constantly i get errors for missinterpreting '%' as arithmetic (modulo) instead escape character for regexp like '%d'=digits no big deal, jut wanted to see it working (i like regexp ) it is too powerfull still can use normal strings and variables tho - what i'm really trying to reproduce is fetch many unique names , not incremental counters. eg. to find units with duplicate names, one or many with the 'same name' string currently it fetches only one, first result, but if there are more of the same name, would need to build something as incremental list, or something ... would use 'side' only to truncate list even more ...still learning, tho Cheers
< Message edited by zaytsev -- 3/30/2016 11:24:54 AM >
|