Yes, non-zero track always keeps track of the coordinates of all piece types, and type N is special by the adjacent squares getting the 'nodes' mark in the 'neighbor' array, so the user can test it, and do whatever he wants with moves that touch the spellZone in some way. Defining a spell only makes the corresponding action already performed by the Diagram script itself.
I guess I should add some more spell flavors: protect could make pieces standing in the spell zone uncapturable. And hide could make them transparent, allowing any piece to hop over them..
Yes, non-zero track always keeps track of the coordinates of all piece types, and type N is special by the adjacent squares getting the 'nodes' mark in the 'neighbor' array, so the user can test it, and do whatever he wants with moves that touch the spellZone in some way. Defining a spell only makes the corresponding action already performed by the Diagram script itself.
I guess I should add some more spell flavors: protect could make pieces standing in the spell zone uncapturable. And hide could make them transparent, allowing any piece to hop over them..