Search found 444 matches

by biodude
Sat Jul 03, 2010 11:59 pm
Forum: Drop-In Macro Resources
Topic: [1.3b56+] Canned Token Speech Interface
Replies: 11
Views: 5294

Re: [1.3b56+] Canned Token Speech Interface

Forgive my ignorance, but what's the advantage of using this over simply right-clicking a token and selecting a specific speech option? I wrote this tool mostly to see if I could, but here are the main advantages I was trying to achieve (feel free to disagree): ⋅ View, Edit and Use canned...
by biodude
Fri Jul 02, 2010 8:01 am
Forum: MapTool
Topic: Canceling a macro and killing a span moloch
Replies: 2
Views: 283

Re: Canceling a macro and killing a span moloch

Greetings, and welcome to the forums (fora?)! assert only sends error-text to the user running the macro (i.e. 'self'-only): it is never sent as "impersonated". If you want the message to come out as impersonated, you would have to fake it, using something a bit fancier, including Queued C...
by biodude
Thu Jul 01, 2010 8:23 am
Forum: Macros
Topic: json.append() and empty properties
Replies: 7
Views: 1044

Re: json.append() and empty properties

Here's another one Azhrei:
json.isEmpty("foo") also returns 0 (not empty), even though it's not even a json structure!

Another reason I don't rely on json.isEmpty to catch non-valid json's. json.type is really the most reliable at the moment.
by biodude
Wed Jun 30, 2010 1:09 pm
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

double post - (isnt there a way to delete this message?) Edit the message: there should be a tiny checkbox above the Subject line labelled "Delete Post:" and "[ Once deleted the post cannot be recovered ]" beside it. Nope... You appear to have a different Board Layout/style than...
by biodude
Wed Jun 30, 2010 1:01 pm
Forum: Macros
Topic: json.append() and empty properties
Replies: 7
Views: 1044

Re: json.append() and empty properties

... The problem that I keep running into is that it is impossible for me to tell whether or not there is already a JSON Array assigned to the property. json.type won't tell me if weaponProperty contains a JSON Array or not (returns UNKNOWN regardless of what the value of my property is), and if the...
by biodude
Wed Jun 30, 2010 9:01 am
Forum: Macros
Topic: Nice Input() trick to show blank entry for values
Replies: 6
Views: 599

Re: Nice Input() trick to show blank entry for values

Usually, when you leave a value blank for input it puts that annoying 0 in it's place. Here's one way to avoid that: Sweet! That's always been a HUGE annoyance. The only limitation, I suppose is that the variable name is visible as the prompt (and the variable name/contents must be StrProp-compatib...
by biodude
Wed Jun 30, 2010 8:50 am
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

wolph42 wrote:double post - (isnt there a way to delete this message?)

Edit the message: there should be a tiny checkbox above the Subject line labelled "Delete Post:" and "[ Once deleted the post cannot be recovered ]" beside it.
by biodude
Wed Jun 30, 2010 8:47 am
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

I did the test: the json.fromlist is one second faster (with the huge table). 40.8s vs 41.9s (i tested both methods consecutively) And as it makes the code also more readable...: its a winner! Sweet! :?: How do you remove 'hidden' token properties resetProperty should work. And, as of b68, it also ...
by biodude
Tue Jun 29, 2010 11:37 pm
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

ok i tested your piece of code. This is what i made of it: Even faster? <!-- List Parsing XPTL -->[h: args  = macro.args][h: Title = json.get(args, "Title")][h: text  = json.get(args, "TextBox")][delim = "%09"][deDelim = decode(delim)][lb = "%0A"][jTable = "{}"][row=""][rowN...
by biodude
Tue Jun 29, 2010 11:10 pm
Forum: Macros
Topic: Newlines in new macros
Replies: 7
Views: 440

Re: Newlines in new macros

I wonder if this works (untested)...
Try using this code to insert a new line into text: decode("%0A")
e.g.

Code: Select all

[H: string = "line 1"+ decode("%0A") +"line 2" ]
by biodude
Tue Jun 29, 2010 10:57 pm
Forum: Feature Requests
Topic: [1.3.b69] CSS and Chat
Replies: 22
Views: 2830

Re: [1.3.b69] CSS and Chat

The first element that appears in the chat panel which is NOT valid inside the <head> is probably what triggers the Java code to switch from the head to the body. And once switched, you can't get back. Not from what I can tell, although macro output does get ... altered ... considerably on the way ...
by biodude
Tue Jun 29, 2010 9:55 pm
Forum: Macros
Topic: Custom "Robust" eval()
Replies: 12
Views: 1488

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 whic...
by biodude
Tue Jun 29, 2010 2:23 pm
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

MapTool tables can hold JSON's as well as tokens and as pointed out, they have pics associated. and as also has been pointed out: its read only AND moreover its insanely cumbersome to create a list even with my excel tool. I don't foresee someone changing tavern names that often so read only point ...
by biodude
Tue Jun 29, 2010 12:25 pm
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

ok i tested your piece of code. Needed some debugging, most interesting and beyond my comprehension was the fact that i had to change: <!-- all subsequent rows --> [h, FOR( l, 2 , nLine ), CODE: { into <!-- all subsequent rows --> [h, FOR( l, 2 , nLine+1 ), CODE: { I did check the value, but as soo...
by biodude
Tue Jun 29, 2010 9:56 am
Forum: Macros
Topic: Too Many Darn Lists
Replies: 48
Views: 3928

Re: Too Many Darn Lists

It took a total of 65 seconds to proces the whole table. The question now is, is that acceptable? (its a rather huge table, but 1 minute is also quite a long time) My attitude towards speed of these things has to do with context: I don't mind if an import action takes a few seconds or even a minute...

Go to advanced search