Search found 444 matches
- Sat Oct 13, 2012 7:33 pm
- Forum: User Creations
- Topic: d20 StatBlock Importer: Pathfinder/DnD3/3.5
- Replies: 27
- Views: 18818
Re: d20 StatBlock Importer: Pathfinder/DnD3/3.5
Hi! I'm so glad you like the tool. However, I should point out that it is OLD - I haven't looked at this in over 2 years - as you can probably tell from the date of that last post. I've since hit the home stretch of my PhD, while starting a full-time job, and just haven't had time to keep up with RP...
- Tue Jun 07, 2011 6:19 pm
- Forum: Developer Notes
- Topic: MapTool 1.4
- Replies: 116
- Views: 51416
Re: MapTool 1.4
MapTool Direction Source Control We will be moving from svn to git. Again something that won't be exciting to most MapTool users, but it does mean more flexibility for how contributions are handled. As a recent adopter of git, this is exciting to me :D Macro Language Changes WAAAY back, when I was ...
- Fri Oct 22, 2010 7:28 am
- Forum: User Creations
- Topic: Batch Edit Macro Properties [1.3b56+]
- Replies: 9
- Views: 6368
Re: Batch Edit Macro Properties [1.3b56+]
Can you give a quick run down of how you would set this up. I couldn't get it to work. Now given I am as dumb as a rock, but I dragged the token into my campaign, I ran the "onCampaignLoad", then I tried to run from token, nothing, couldn't find my other tokens. I then tried dragging macr...
- Sat Sep 11, 2010 9:29 pm
- Forum: Feature Requests
- Topic: [1.3.b70] Change style of form buttons
- Replies: 5
- Views: 860
Re: [1.3.b70] Change style of form buttons
Have you tried changing padding or margins in the html in the input contents directly? <input type="submit" value="<html><span style='padding: 0 ; margin: 0 ;'>X</span></html>"> <input type="submit" value="<html><head><style><!-- html { margin: 0 ; padding: 0 ; } -...
- Thu Aug 12, 2010 2:45 pm
- Forum: MapTool
- Topic: Bug? Or bad macro?
- Replies: 3
- Views: 464
Re: Bug? Or bad macro?
I don't know if it's a bug, but it might easier to construct your tooltip manually (using the title attribute of a span tag: see alisamask's post), than trying to figure out formatting of nested MapTool roll options, which can get messy, as you have discovered. I think the note you refer to regardin...
- Tue Aug 10, 2010 11:45 am
- Forum: Macros
- Topic: rol.count doesn't work...anymore
- Replies: 7
- Views: 697
Re: rol.count doesn't work...anymore
The formatToolTip UDF does use FOREACH loops. All loops ( count , for , foreach , and even while ) generate their own roll.count, if I recall correctly. Therefore, if you defined the formatToolTip function with the same variable scope (4th argument in defineFunction : refers to the scope of variable...
- Wed Jul 28, 2010 1:02 pm
- Forum: Feature Requests
- Topic: [1.3b70] get active variables
- Replies: 8
- Views: 823
Re: [1.3b70] get active variables
For macros where I will deal with and process several token properties, I usually do this: - Define a list of all the property names - Set local variables with a prefix with the contents of the token properties - do some processing to the local variables - set the properties with a loop. You could d...
- Wed Jul 28, 2010 12:53 pm
- Forum: Feature Requests
- Topic: [1.3b56-70] Try() function to suppress error messages?
- Replies: 9
- Views: 1246
Re: [1.3b56-70] Try() function to suppress error messages?
FYI Error messages can be suppressed in User-Defined Functions, by defining a function with "output suppressed" (see defineFunction ). This generally causes a function to return an empty string, rather than an error message. However, this is only true if the option for "Use ToolTips f...
- Wed Jul 28, 2010 12:45 pm
- Forum: Macros
- Topic: Custom "Robust" eval()
- Replies: 12
- Views: 1869
Re: Custom "Robust" eval()
So, looking at your code, I'm guessing oldFunction is the same as using the UDF alias name? I've never used it before. Sort of: it calls the original function being replaced by the UDF. This is not the same as calling the function directly (now defined as a UDF), which would be recursive, as oppose...
- Wed Jul 28, 2010 9:59 am
- Forum: Macros
- Topic: Custom "Robust" eval()
- Replies: 12
- Views: 1869
Re: Custom "Robust" eval()
A redefinition of the eval() function to work around its limitations. Features this custom version has that the standard eval() lacks: ... Returns empty strings instead of providing an error. ... ... Unless the preference for "Use ToolTips for Inline Rolls" is checked, in which case all t...
- Mon Jul 26, 2010 6:27 pm
- Forum: Macros
- Topic: macroLink - font colour
- Replies: 4
- Views: 603
Re: macroLink - font colour
The 'style' attribute also applies to many other tags, not just <span>, so you can also apply it directly to the <a> tag: <a href="http://forums.rptools.net/posting.php?mode=reply&f=20&t=15381" style='color:red'>text</a> This is not always feasible if you are generating links using...
- Mon Jul 26, 2010 6:18 pm
- Forum: Macros
- Topic: Macro to alter /emit
- Replies: 2
- Views: 387
Re: Macro to alter /emit
Not without using a different approach. If you use a dialog for input, with a textarea as part of an HTML form, then you can have multi-line input. There are a few examples in the user creations forum. The biggest difference is that dialog doe not interrupt macro execution (unlike the input function...
- Tue Jul 20, 2010 9:22 pm
- Forum: General Discussion
- Topic: Regular Expression Help
- Replies: 11
- Views: 906
Re: Regular Expression Help
MapTools uses the "Java" flavour of regular expressions, which adds extra backslashes (presumably to escape the backslash needed in the actual regular expression pattern). See this site for more info . Rumble recommends using the above-mentioned site to test patterns, then you can go over ...
- Thu Jul 15, 2010 4:24 pm
- Forum: Macros
- Topic: is there a way to sort json objects?
- Replies: 6
- Views: 1255
Re: is there a way to sort json objects?
There's an example on the wiki of a UDF for Sorting Nested JSON Objects (by sub-fields), if that's what you're looking for.
Look under JSON Sorting for the code.
Look under JSON Sorting for the code.
- Sun Jul 11, 2010 10:59 pm
- Forum: Macros
- Topic: Problem with UDF
- Replies: 7
- Views: 579
Re: Problem with UDF
Heh, yeah, that was going to be my suggestion after looking at your code, though I didn't think it'd produce an error message like you saw. :) Note the arg() function is (I think) sorta the standard when dealing with UDFs. Good eye - I missed that one. Yes, All arguments passed to a function are au...