1) From another thread, so I don't hijack it:
OK, could you explain, or at least direct me to docs here? I have tried to set variables on tokens, and I do not get errors, but the variables do not seem to hold when I then access that token from another macro.wolph42 wrote:by the way, ANY variable attached to the token can be used for this trick. Using the property type is pretty invasive, you could also use a state or a property or even a hidden property.
The only way I can find to store data on a token is to use setProperty or setLibProperty. In fact, I am having real problems altering token properties from lib functions. If I for example create a bunch of tokens, the only way I can move them around is to set the update property when I do the copy - once I create the token, I cannot alter it's properties from the same function that created it.
2)Is it possible to move a token to the current viewport somehow? Or get viewport coordinates?
3) is there a quick way to get/set values in a JSON tree? eg this.that.whatIwant = 100
If not, has anyone written a function to do this? eg setjson(json_data,"this.that.whatIwant",100)
4) Are there any docs explaining in detail the [h:], [r:], CODE:{ etc syntax in depth and concretely? The wiki docs say that h or r must always be followed by a colon, but if commands only work like [h,if.. or [r:, if...
5) What level of IDE integration does MT have? I found some docs on getting notepad++ to work, but I am not sure *what* is meant to work. Some of the files in the instructions were dead links, so I could not complete the setup for np++ - Can it be set up such that you click edit macro, and the macro appears inside np++, and when you hit save in np++, it saves the macro into the campaign?
Enough for now, I am sure I can add more later.