09-24-2020, 10:56 PM
Hello, I am looking for an answer about the new count feature recently implemented in 1.07
(count Pieces Mover in:(sites LineOfSight at:(to)))
was a line of code I am using to return the numeric value of friendly pieces in line of sight of a selected cell.
I ran a test to see if I could arbitrarily set a number of pieces for the Add command, and it worked.
Something like this -
count:5
// if I use this, every time I add a piece, I get a 5-stack.
count:(count Pieces Mover in:(sites LineOfSight at:(to)))
// but if I use this, every time I add a piece, I get a 1-stack.
So either - the (count) function is not returning a numeric, or the count: function is not accepting functions as input.
Developers, which one is it?
(count Pieces Mover in:(sites LineOfSight at:(to)))
was a line of code I am using to return the numeric value of friendly pieces in line of sight of a selected cell.
I ran a test to see if I could arbitrarily set a number of pieces for the Add command, and it worked.
Something like this -
count:5
// if I use this, every time I add a piece, I get a 5-stack.
count:(count Pieces Mover in:(sites LineOfSight at:(to)))
// but if I use this, every time I add a piece, I get a 1-stack.
So either - the (count) function is not returning a numeric, or the count: function is not accepting functions as input.
Developers, which one is it?