Can someone figure out why after running the red line, the code never comes back to the next (green) line.
[H: macroName = ARG(0)]
[H, IF(argCount()>1) : macroParams = ARG(1); macroParams = ""]
[H, IF(argCount()>2) : dataToken = ARG(2); dataToken = ""]
[H: macroLibName = substring(macroName, indexOf(macroName, "@")+1, length(macroName))]
[H: macroName = substring(macroName, 0, indexOf(macroName, "@"))]
[H: Result = ""]
[H, IF(NOTNULL(macroLibName)): macroExists = hasMacro(macroName, macroLibName); macroExists=0]
[H, IF(macroExists), CODE: {
[H, IF(ISNULL(dataToken)): dataToken = getName()]
[H, IF(startsWith(dataToken, "LIB:")==0): dataToken = "LIB": + dataToken]
[H: macroName = macroName + "@" + macroLibName]
[H: switchToken(dataToken)]
[H, MACRO(macroName): macroParams]
[H: Result = macro.return]
}]
[H: macro.return = Result]
Unresponsive MACRO call.
Moderators: dorpond, trevor, Azhrei
Re: Unresponsive MACRO call.
Probly cause it renders an error. But without that code (of macroname) it's hard to tell.
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS