Discussion and Support

Skip to content

It is currently Fri Sep 22, 2017 3:42 pm 

Reply to topic  [ 2 posts ] 

Previous topic | Next topic 

  Print view

Author Message
Cave Troll
Joined: Tue Sep 21, 2010 2:13 pm
Posts: 67
 Post subject: Unresponsive MACRO call.
PostPosted: Wed May 28, 2014 10:43 am 
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]

User avatar  Offline
Joined: Fri Mar 20, 2009 4:40 am
Posts: 9379
Location: Netherlands
 Post subject: Re: Unresponsive MACRO call.
PostPosted: Wed May 28, 2014 3:17 pm 
Probly cause it renders an error. But without that code (of macroname) it's hard to tell.


My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent and
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

Display posts from previous:  Sort by  
Reply to topic  [ 2 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 243 on Sun Nov 04, 2012 6:14 am

Users browsing this forum: No registered users and 3 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Style based on Andreas08 by Andreas Viklund

Style by Elizabeth Shulman