By the way, the script has a few drawbacks. In particular, it only reveals regions diagonally (to avoid this, you need two variables: r1 and r2). Also, it's better to multiply them by something in the OpenCircleFog(r, r, 0, 10, PLAYER_1) function, otherwise, a spread of five cells isn't very large. But these are just minor details.
By the way, the script has a few drawbacks. In particular, it only reveals regions diagonally (to avoid this, you need two variables: r1 and r2). Also, it's better to multiply them by something in the OpenCircleFog(r, r, 0, 10, PLAYER_1) function, otherwise, a spread of five cells isn't very large. But these are just minor details.