I'm trying to make my own action definitions to make my life easier with making a map but it appears that I can't use global variables that are indexed in the custom action definitions. Each time I try to save it, it throws a syntax error at me with the line of my variable highlighted. Anyone know if there's a way around this?
Silly me, no global variables will work with a definition in a library since libraries are meant to be used across maps and not all maps are going to have the same variables. Which explains why using global variables in definitions not in the library folder would work.
By "indexed variable", you mean an array? I am pretty sure, you can use global arrays in your action definitions. They probably need to be declared first.
If you could post your code, it might help us finding the problem without relying too much on crystal ball gazing ;)
I'm trying to make my own action definitions to make my life easier with making a map but it appears that I can't use global variables that are indexed in the custom action definitions. Each time I try to save it, it throws a syntax error at me with the line of my variable highlighted. Anyone know if there's a way around this?
ugh ... wait ... what?
Variables in the action definations are local not global.
Post the script.
Silly me, no global variables will work with a definition in a library since libraries are meant to be used across maps and not all maps are going to have the same variables. Which explains why using global variables in definitions not in the library folder would work.
By "indexed variable", you mean an array? I am pretty sure, you can use global arrays in your action definitions. They probably need to be declared first.
If you could post your code, it might help us finding the problem without relying too much on crystal ball gazing ;)