Search found 8534 matches

by aliasmask
Sat Jul 04, 2020 12:28 pm
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 24
Views: 493

Re: Mini Macro Challenges (Interest)

I had some thoughts, but it was kind of complicated to write out the details. Basically, what I was thinking is you generate your pool of patrons based on the percentages then seat them one at a time based on preferences of the one going to sit and the ones already at a table, then roll randomly if ...
by aliasmask
Thu Jul 02, 2020 10:00 am
Forum: Macros
Topic: How to write commands for macro creation properly?
Replies: 2
Views: 38

Re: How to write commands for macro creation properly?

Try this:

Code: Select all

[h: macroProps=""]
[h: macroProps=setStrProp(macroProps, "autoexec", "true")]
[h: command='[h, MACRO("[email protected]:Test"):""]']
[h: createMacro("someName", command, macroProps)]
by aliasmask
Tue Jun 30, 2020 8:22 pm
Forum: Macros
Topic: 1.7 syintax change?
Replies: 2
Views: 47

Re: 1.7 syintax change?

It would help if you provide your code you have for context. The usually way to do an if statement is this [H, if(condition): "true"; "false"] <!-- or --> [H, if(condition), code: { [H: "true"] };{ [H: "false"] }] The code block is usually for multiple statements. You can leave of the false statemen...
by aliasmask
Tue Jun 30, 2020 4:08 pm
Forum: MapTool
Topic: Problem with Variable - Macro
Replies: 4
Views: 98

Re: Problem with Variable - Macro

You never mentioned what the error was, but I notice some improperly formatted html. This is what I came up with. I also added "all" to output of macro link assuming when you click link it will generate output. Otherwise, you can put "none". [H: link = macroLinkText('[email protected]:Character','all','...
by aliasmask
Thu Jun 25, 2020 5:55 am
Forum: Macros
Topic: Two Players missing macro text
Replies: 3
Views: 63

Re: Two Players missing macro text

Could also be the windows 10 scaling. If not at 100% scaling, then some things will be misaligned.
by aliasmask
Thu Jun 25, 2020 5:52 am
Forum: Macros
Topic: Having trouble with count() in macro.
Replies: 9
Views: 98

Re: Having trouble with count() in macro.

Yeah, I suspected that, but I was pretty sure you could use ' in chat. The thing I'm realizing now is if in a code block, the parser will consider everything after the ' as a string, including the closing braces. That seems to be a bug. Still works if outside of a code block.
by aliasmask
Wed Jun 24, 2020 7:17 pm
Forum: Macros
Topic: Having trouble with count() in macro.
Replies: 9
Views: 98

Re: Having trouble with count() in macro.

Try replacing {getProperty("Weapon1")} with [r: getProperty("Weapon1")] and see what happens.
by aliasmask
Wed Jun 24, 2020 1:48 pm
Forum: Macros
Topic: Having trouble with count() in macro.
Replies: 9
Views: 98

Re: Having trouble with count() in macro.

Do you get an error message? The most likely cause is one of your values is not an actual value, like possibly for this line [h: penetration = armor - getProperty("Weapon1Penetration")] If Weapon1Penetration is blank, rather than 0, then it would cause an error. edit: Another issue could be the eval...
by aliasmask
Wed Jun 24, 2020 9:04 am
Forum: MapTool
Topic: Getting property from non selected token
Replies: 7
Views: 171

Re: Getting property from non selected token

When it asks for a variable it just means that variable isn't currently defined. The macro should ask for charges, write that value to the current token (not lib token) then everything should be fine. Well, that's the way it should be.
by aliasmask
Sun Jun 21, 2020 6:29 am
Forum: MapTool
Topic: Token ID Bug strikes back
Replies: 3
Views: 136

Re: Token ID Bug strikes back

I personally thought this was fixed. Are these "old" tokens? Another test is to see if isNumber() is true. These ids shouldn't look like a number. Once you get all your "bad ids", you can still use the original id from within the array to use the id to copy that token and delete the original. Just d...
by aliasmask
Sun Jun 21, 2020 6:19 am
Forum: General Discussion
Topic: Problem with new version 1.7
Replies: 5
Views: 332

Re: Problem with new version 1.7

For a temp fix you can replace {content} with [r: content]
by aliasmask
Wed Jun 17, 2020 10:37 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 24
Views: 493

Re: Mini Macro Challenges (Interest)

You can't actually getTokens() based on their name, but could filter out tokens that way as with any other property of the token. That method would also have to depend on you to remember to put a space in the token name like when numbering the token. If there is some other significance to "space" in...
by aliasmask
Wed Jun 17, 2020 10:28 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 24
Views: 493

Re: Mini Macro Challenges (Interest)

I mention the zoom of 1:1 because of placing the reference token to select your area. If you're zoomed out really far, you may not see the token come in to existence or be able to select it. You can change the zoom afterwards though.
by aliasmask
Wed Jun 17, 2020 6:06 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 24
Views: 493

Re: Mini Macro Challenges (Interest)

I think the main challenge is how you select your area. You can use vbl or manually put in the dimensions based on a source token. Rather than using the area option for getTokens I would stick with distance (radius) and just change the metric to 1:1 so it forms a square. For non-square areas you can...
by aliasmask
Tue Jun 16, 2020 5:34 pm
Forum: MapTool
Topic: Overlapping tokens selection issue
Replies: 7
Views: 126

Re: Overlapping tokens selection issue

I actually never knew that. Pain for the DM, but useful for players. I guess you would use the arrow keys or number pad to move token out from under.

Go to advanced search