Search found 100 matches

by bubblobill
Sat Jul 18, 2020 12:51 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

You are making my head hurt. How complex are you going here group-wise, is a group the entire patronage or a subset thereof such as a table? I keep thinking that from the statistics point of view you are generating your population and then taking a random sample. You might be better off creating tha...
by bubblobill
Mon Jul 13, 2020 1:59 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

You are getting closer but your method will not work for a vertical line.
by bubblobill
Sat Jul 11, 2020 10:59 pm
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

You can get token x/y on both tokens. You can get token width/height on both tokens. You can calculate the line from the token positions on the path. You should be able to calculate the points on the line where the PC is adjacent to the trap. The challenge is for it to choose the correct one of two ...
by bubblobill
Thu Jul 09, 2020 4:09 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

So what you're saying is that you haven't managed to beat the challenge because you can only do snap-to-grid.
STG is easy; which is why it is not part of the chllenge.
by bubblobill
Wed Jul 08, 2020 3:01 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

New Macro Challenge

Here is the challenge Whilst moving a PC detects a trap so they stop moving before setting it off. Context: onTokenMove checks movedOverToken against a list of traps and then performs a perception check. If successful a function is called to stop movement and reveal the location of the trap. Given:...
by bubblobill
Tue Jun 23, 2020 6:26 am
Forum: Macros
Topic: Object info from Token layer.
Replies: 2
Views: 100

Re: Object info from Token layer.

Check out related issues:
https://github.com/RPTools/maptool/issues/1837
https://github.com/RPTools/maptool/issues/1420

You might want to pile in to ensure the functionality you want is included.
by bubblobill
Thu Jun 18, 2020 10:14 pm
Forum: Feature Requests
Topic: Allow removal of drawings through macro function
Replies: 2
Views: 70

Re: Allow removal of drawings through macro function

Not ideal but you could set the drawing opacity to 0 in the interim.
by bubblobill
Wed Jun 17, 2020 11:16 pm
Forum: Macros
Topic: Rotating a map, map VBL, and assets.
Replies: 9
Views: 183

Re: Rotating a map, map VBL, and assets.

Okay, this mostly works. It will give you an idea of how to do it using an affine transform. It isn't quite there yet, I suspect it needs to compensate for facing angles that are -ve or over 360. Hopefully someone with a finer knowledge of MT peculairities can iron out the bumps. [h: rot=number(angl...
by bubblobill
Wed Jun 17, 2020 9:31 pm
Forum: Macros
Topic: Rotating a map, map VBL, and assets.
Replies: 9
Views: 183

Re: Rotating a map, map VBL, and assets.

I don't believe the background image can be manipulated in any way. The most viable way to do this would be to have the map as a token/stamp on the background layer instead of a background image. That would allow you to have your VBL reside on the token instead which can easily be rotated. The harde...
by bubblobill
Wed Jun 17, 2020 10:45 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

I liked your idea of using VBL to define the area. Then you could use something like getVisibleTokens(). I doubt that would return tokens on other layers though.
by bubblobill
Wed Jun 17, 2020 10:43 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

Wolph wants to copy his Inn. The inn is built from tokens that have a name structure without spaces, so any copied tokens from the resource pile will have a space in their name. Is very specific and not generally applicable or useful.
by bubblobill
Wed Jun 17, 2020 10:22 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

I'm saying it is faster than generating the area. To use area in getTokens you need to generate a json array of json object coordinates for every cell. By the time you have generated the area to getTokens in you would already have been finished doing it another way. Until getTokens allows you to def...
by bubblobill
Wed Jun 17, 2020 8:43 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 45
Views: 1133

Re: Mini Macro Challenges (Interest)

Faster to get either all tokens or all tokens in range and cull the results than to generate an area for use in getTokens(). Of course if this is Innteresting, you could cull all ids that have a space in their name. Depending on if moveTokenFrom() & moveTokenToMap() preserve the original layer, this...
by bubblobill
Fri Jun 05, 2020 9:55 am
Forum: MapTool
Topic: Does a maptoolbox makes sense?
Replies: 7
Views: 257

Re: Does a maptoolbox makes sense?

Requires a pretty serious discussion of naming conventions and structures.
What sort of thing do you want to be able to hook together and how do you envision the hooks working?

Go to advanced search