Doc_Waldo, there are two functions that can help here (docs are a bit scarce ATM, but CIF, Wolph42, and myself could probably help answer any outstanding questions).Doc_Waldo wrote:The trap is the big function I am looking for right now. I will take a look at the thread and see if I can get it into Rumbles FW. I am also going to take a deeper look at the "peek" function so I can understand what it is doing. Thanks.
The first is movedOverToken() which was added in b74 or b75.. not sure which. Basically, you could have a trap represented as a token(even on the hidden layer!) and if a visible token moves over it, you can detect this using the function while within the onTokenMove() or onMultipleTokensrepresenttedMove() functions and act accordingly(including reverting movement to start(though FOW is still revealed.. not much I can do about that one) or manually macro moving the token to the location of the trap).
The second one is a bit more general, movedOverPoints() which is in b76 I think. The good thing about this is that you could create an arbitrary closed shape (while tokens are always square!!!!) to test if a token entered said area.