I'll come back and update this topic later when I get home - my machine has stopped letting me remote into it - but...
Are there any considerations I need to understand with importing macros from one campaign file into another?
I'm stitching together my own framework for OD6, taking pieces I like from the others available out there, and one of the ones I brought over this morning is throwing a syntax error in my framework only. The process was:
1) Try macro in original framework. Works great, and I like it. (It was a 4e-something. Highlighting tokens. I'll add that detail when I have access to it...)
2) Export to file.
3) Import into my framework.
4) Test, get error in chat.
5) Switch back to other framework, still working.
From what I can see, no libs are being used, nor anything else referenced. It 'should' run in either framework, right? Or is there some kind of trust I need to set on the imported macro first? I've seen the notion of 'trusted macro', but I'm not clear on how to interact with that.
Again, more detail later, but if there's anything obvious that I'm missing, I'd love to learn more about this excellent tool.
EDIT1: More detail...
The macro is from 'rfw-dnd-v513.cmpgn' and contains this code:
Code:
[h:assert(isGM(), "Only the GM can use this macro.",0)]
[h:filter = json.set("{}", "pc", 1)]
[h:tokenList = getTokens(",", filter)]
[h,foreach(token,tokenList),CODE:
{
[switchToken(token)]
[state.PCHalo = 1 - state.PCHalo]
}]
[h:abort(0)]