Search found 8984 matches

by aliasmask
Tue Sep 05, 2023 2:57 am
Forum: Macros
Topic: json path function to add or change
Replies: 1
Views: 337

Re: json path function to add or change

That's what Wiki: json.put() is used for. I believe it will also change existing values. Wiki: json.add() is for adding more array slot and Wiki: json.set() is for changing existing values. I do recommend when creating arrays of object that all the objects have the same keys even if the values are blank.
by aliasmask
Wed Aug 30, 2023 7:46 am
Forum: General Discussion
Topic: Trouble Accessing the FAQ Section - Need Assistance
Replies: 1
Views: 378

Re: Trouble Accessing the FAQ Section - Need Assistance

When I click on FAQ it goes to https://forums.rptools.net/app.php/help/faq. You can also see that link by hovering over it and looking at bottom left (in Chrome). If your link is different it could be related to the theme. I'm using "SE Square Left". You can find the theme with the "S...
by aliasmask
Tue Aug 29, 2023 8:06 pm
Forum: Macros
Topic: Input() always returning 1
Replies: 2
Views: 303

Re: Input() always returning 1

Code: Select all

[h: selectedToken = getName()]

[h: abort(input("modifier|"+InitiativeMod+"|Enter the initiative value for " + selectedToken + "|TEXT"))]

[h: InitiativeMod = modifier]

My initiative modifier is set to [r: InitiativeMod]!
by aliasmask
Wed Aug 23, 2023 1:36 am
Forum: MapTool
Topic: Question about layers before I make a Feature Request
Replies: 3
Views: 592

Re: Question about layers before I make a Feature Request

So, to summarize, you want to be able to sort the Map Explorer assets by z-order and to allow reordering the z-order by moving them around in the Map Explorer as well as being able to change the layer in Map Explorer by dragging the selected entry. Seems pretty doable to me. Not sure I would ever ne...
by aliasmask
Mon Aug 21, 2023 7:00 am
Forum: Macros
Topic: Stack Overflow - reading string in Library token property
Replies: 3
Views: 368

Re: Stack Overflow - reading string in Library token property

If you're manually building your jsons, I wouldn't recommend that. I always use the functions. json.append for arrays and json.set for objects.
by aliasmask
Sun Aug 20, 2023 5:35 pm
Forum: Macros
Topic: Stack Overflow - reading string in Library token property
Replies: 3
Views: 368

Re: Stack Overflow - reading string in Library token property

It definitely shouldn't be going to chat, but rather a frame. I use this UDF or something similar to view large jsons. <!-- viewJson(propName,json) --> [h: propName = arg(0)] [H, if(argCount() >= 2): value = arg(1); value = getProperty(propName)] [frame5(propName):{<pre>[R: json.indent(replace(value...
by aliasmask
Mon Aug 14, 2023 5:23 pm
Forum: MapTool
Topic: Error with old campaign to new Campaign.
Replies: 3
Views: 573

Re: Error with old campaign to new Campaign.

Try my suggestion. Export Map (in older version), delete map, save new campaign, open in 1.13.2, import map.
by aliasmask
Mon Aug 14, 2023 1:26 pm
Forum: MapTool
Topic: Error with old campaign to new Campaign.
Replies: 3
Views: 573

Re: Error with old campaign to new Campaign.

One of your maps has a bad "drawable" or image?. If you can figure out which map, I think you can export it, delete it, load 1.13.2, import map and it may fix it. This may already be fixed in 1.13.2 if you're not using that version. I had a similar problem with 1.13.1 with a broken image t...
by aliasmask
Tue Aug 08, 2023 4:33 pm
Forum: MapTool
Topic: Automatically generate VBL
Replies: 7
Views: 990

Re: Automatically generate VBL

Unless someone took an asset and applied vbl to it beforehand (like a geomorph) I don't think you can take a custom asset and have an AI find all the correct terrain blockers for you. Another method I use to draw vbl is line the map up, then set the grid size to half (if 50px map, then 25px) then us...
by aliasmask
Tue Aug 08, 2023 11:53 am
Forum: MapTool
Topic: Automatically generate VBL
Replies: 7
Views: 990

Re: Automatically generate VBL

Most of the time, I just draw my own vbl. One time, I generated the vbl for a really big mine map where drawing the lines wasn't practical. What I did was erase the floors, then expanded the selection so the vbl I generate would show the walls. I then generated the vbl with modified image, then repl...
by aliasmask
Mon Aug 07, 2023 12:47 am
Forum: MapTool
Topic: Can't change VBL
Replies: 5
Views: 493

Re: Can't change VBL

Well, white means it's erasing vbl and won't draw. This is done while holding the shift key. Holding ctrl snaps drawing to grid. Red means it's drawing the shape and should change color when you release based on your vbl options (blue for my above settings). Can you open a new campaign, click the ey...
by aliasmask
Sat Aug 05, 2023 10:55 pm
Forum: MapTool
Topic: Can't change VBL
Replies: 5
Views: 493

Re: Can't change VBL

Which VBL buttons do you have selected? For example when I draw VBL I have these settings.

Another question. When trying to draw VBL, what color is the line... white? Do you hold any other keys like ctrl or shift?
by aliasmask
Sat Jul 29, 2023 4:18 am
Forum: Macros
Topic: Input box to delete selected indexes from json array
Replies: 3
Views: 429

Re: Input box to delete selected indexes from json array

Part of your answer is in your previous thread where you get the list. You then loop through list creating your checkboxes. There are various ways to do this. Here's a simple example: [H: list = json.append("","One","Two","Three")] [H: inputStr = "[]"...
by aliasmask
Fri Jul 28, 2023 10:27 am
Forum: Macros
Topic: How to check Range
Replies: 4
Views: 370

Re: How to check Range

Under the token properties: *sheet.distance (Distance):[r: pf2.distanceStatSheet(currentToken())] <!-- distanceStatSheet(sourceToken): distanceList sourceToken - source token to measure selected tokens to. Current token being moused-over by design. distanceList - A list of selected token to measure ...
by aliasmask
Thu Jul 27, 2023 5:24 pm
Forum: Macros
Topic: How to check Range
Replies: 4
Views: 370

Re: How to check Range

I use a macro the shows the range on mouseover. It uses the 1:2:1 formula, but you could also use getDistance() function. getDistanceToXY() has some more options.

Go to advanced search