Search found 8982 matches

by aliasmask
Sat Apr 13, 2024 12:21 am
Forum: Macros
Topic: input box that updates as information is entered.
Replies: 3
Views: 27

Re: input box that updates as information is entered.

If the sum is always 10 do you really need a 2nd entry? I guess it depends on what you're trying to accomplish, but no, it can't be done through input().
by aliasmask
Thu Apr 11, 2024 1:44 am
Forum: Macros
Topic: Display issue "\n"
Replies: 2
Views: 22

Re: Display issue "\n"

Okay found it here in Discord: https://discord.com/channels/2962308222 ... 8699633724

We were discussing how best to import a raw json structure and I include a test token.
by aliasmask
Thu Apr 11, 2024 1:27 am
Forum: Macros
Topic: Display issue "\n"
Replies: 2
Views: 22

Re: Display issue "\n"

Yeah, it's an encoding thing from how you're inputting the data. For example, if you use input() to get data it will have those kind of symbols. What I end up doing is putting the data in a macro then use getMacroCommand() to read in the raw data as a json. I wrote a code snippet recently somewhere,...
by aliasmask
Wed Apr 03, 2024 2:35 pm
Forum: Macros
Topic: Any reason not to use an event handler heavily?
Replies: 3
Views: 92

Re: Any reason not to use an event handler heavily?

For the most part, it doesn't matter until it matters.

It is poor design to do unneeded actions, but if you don't notice a performance hit, then it doesn't really matter.

Now if you're trying to predict the limits, it's not really possible until you implement your code.
by aliasmask
Sun Mar 31, 2024 6:44 pm
Forum: Macros
Topic: json.remove multiple times on the same array used in a loop
Replies: 3
Views: 93

Re: json.remove multiple times on the same array used in a loop

[h: newrounds = "[]"] [h: actiontoreport = "[]"] [h, FOREACH(curjson, rounds), CODE: { [h, if(json.get(curjson, "Round") < moveday): actiontoreport = json.append(actiontoreport,json.get(curjson, "Action")); newrounds = json.append(newrounds,curjson)] }] [H: r...
by aliasmask
Sun Mar 24, 2024 5:42 pm
Forum: Macros
Topic: I think I found an error in the maptool wiki...
Replies: 1
Views: 46

Re: I think I found an error in the maptool wiki...

It does work as is, but if you don't have "Use Tooltips for inline rolls" set in your preferences, you'll get a bunch of other text with it.

But the best practice is to use [R:] in front. I went ahead and updated the wiki.
by aliasmask
Mon Mar 18, 2024 4:28 am
Forum: MapTool
Topic: On my own, how can I manage my preferences?
Replies: 1
Views: 119

Re: On my own, how can I manage my preferences?

I'm guessing you are using MTPlayer token to play your sounds which plays to all clients at once and if you're playing in person you don't want it to play to all the clients, just the server. There's a line near the bottom for the audio macro. [H: execLink(audioByte,1,"all")] where you can...
by aliasmask
Sun Mar 17, 2024 2:10 am
Forum: Macros
Topic: Adding selected campaign macros to right click menu of PCs
Replies: 6
Views: 126

Re: Adding selected campaign macros to right click menu of PCs

Not sure I can explain it better. "macroName" is just the name of any macro you define and is just a placeholder.
by aliasmask
Sat Mar 16, 2024 3:52 pm
Forum: Macros
Topic: Adding selected campaign macros to right click menu of PCs
Replies: 6
Views: 126

Re: Adding selected campaign macros to right click menu of PCs

If you're handling all the tokens, then I don't think you need to get very fancy. Just create a macro to "Initialize" your token. The "do something when this happens in MT" is called an Event Handler and those are very limited. Sometimes you can piggyback off an event not related...
by aliasmask
Sat Mar 16, 2024 3:12 am
Forum: Macros
Topic: Adding selected campaign macros to right click menu of PCs
Replies: 6
Views: 126

Re: Adding selected campaign macros to right click menu of PCs

It could be a little tricky, but it can be done. To prevent players from placing tokens on the map, I would have a mouse over event check the token. Basically, the default value of a token will run a macro, do the checks, then set the field to blank once done so it doesn't run again. You can use thi...
by aliasmask
Wed Mar 13, 2024 8:29 am
Forum: MapTool
Topic: Venturing into the World of D&D DMing
Replies: 1
Views: 57

Re: Venturing into the World of D&D DMing

Although, I'm more than 50% sure this is a chat bot post since asking about Roll20 macros and not MapTool macros is a bit of a giveaway. MapTool macro system, imo, is far easier and powerful than the other VTTs out there. If you're looking to use detailed character stats I recommend one of the exist...
by aliasmask
Tue Mar 12, 2024 5:00 am
Forum: MapTool
Topic: Salutations, esteemed Framework users!
Replies: 1
Views: 56

Re: Salutations, esteemed Framework users!

There are threads for the 5E frameworks in our Discord. You'll probably get a better response from there. But generally speaking, if there is one macro that displays the compendium information you can limit access with the following line at the top of macro. [H: assert(isGM(),"No player access ...
by aliasmask
Fri Feb 16, 2024 12:06 pm
Forum: Macros
Topic: macroLink issue resurfaces...
Replies: 4
Views: 161

Re: macroLink issue resurfaces...

Put an H in front of broadcast and specify the targets if not "all".

Also, NPCs probably return "" for tokenOwner, so it then sends to all instead. I would use an if(isNPC()) for 2 different broadcasts.
by aliasmask
Thu Feb 15, 2024 9:03 pm
Forum: Macros
Topic: macroLink issue resurfaces...
Replies: 4
Views: 161

Re: macroLink issue resurfaces...

if autoexecute is unchecked, means you don't want it run when the link goes to chat. Also, links sent to chat with autoexecute on don't run for the person posting it, but do for other clients that see it. I would just use execLink instead.
by aliasmask
Sun Feb 11, 2024 3:44 pm
Forum: MapTool
Topic: V 1.43.3, how to increase memory???
Replies: 1
Views: 98

Re: V 1.43.3, how to increase memory???

Just below the line java-options=-Xss8M you can add java-options=-Xmx8G but it would probably be more like 7G because it can't take what doesn't exist. On older systems and win32 it can't go much above 4G because of win32 addressing limits. Imo, making this change won't change much on performance if...

Go to advanced search