Search found 134 matches

by bubblobill
Sat Sep 19, 2020 12:02 pm
Forum: Macros
Topic: Strange Output Behaviour
Replies: 2
Views: 47

Re: Strange Output Behaviour

I think you are doing things the hard way, most of your sorting can be achieved in getTokens(). [h: conditions=json.set('', 'unsetStates', 'Dead', 'layer', json.append('', 'token'), 'propertyType', 'PC-NPC')] [h: foundTokens=getTokens('json', conditions)] [foreach(tokenId, foundTokens, ""): getName(...
by bubblobill
Sun Sep 13, 2020 6:35 am
Forum: Macros
Topic: Help with Json Path error
Replies: 6
Views: 108

Re: Help with Json Path error

json.indexOf will only work for the object against WeaponsLibrary.
found should return the stored object with the appropriate name.
You would then set that object to whatever your updated values are.
by bubblobill
Fri Sep 11, 2020 11:04 pm
Forum: Macros
Topic: Help with Json Path error
Replies: 6
Views: 108

Re: Help with Json Path error

There is an error in the index formula, is should be checking for weaponObj not found. [H: found = json.path.read(WeaponsLibrary,strformat(".[?(@.Name == '%{Name}')]"))] [H, if(json.isEmpty(found)), code: { [H: WeaponsLibrary = json.append(WeaponsLibrary,weaponObj)] };{ <!-- weapon already exists, r...
by bubblobill
Thu Sep 10, 2020 9:25 pm
Forum: User Creations
Topic: Motion Tracker - Just like in Aliens®
Replies: 14
Views: 448

Re: Motion Tracker - Just like in Aliens®

Trouble with HTML symbols not staying in their encoded form.. This fixed my JSON [h: settings='{"theta": "", "playSound": 0, "scanVisualRange": 40, "scanDetectRange": 60, "scanUnits": "m", "scanUseFacing": 1, "scanZoomRatio": 1.5, "scanPosition": 0, "scanPositions": [[0,0],[0.25,0],[0.5,0],[0.75,0],...
by bubblobill
Thu Sep 10, 2020 8:40 am
Forum: User Creations
Topic: Motion Tracker - Just like in Aliens®
Replies: 14
Views: 448

Re: Motion Tracker - Just like in Aliens®

Typo in the JSON. I fixed it in the original post. There is a "\" before the size scale object for Square maps.
Hopefully that fixes both issues.
by bubblobill
Wed Sep 09, 2020 11:48 pm
Forum: Macros
Topic: Macro stop functioning after 1.7 update
Replies: 3
Views: 204

Re: Macro stop functioning after 1.7 update

I think your problem is that the stringProp arguments are not properly formed. You want to pass something like "AtributoEfetivoEnviado=foo; TesteEnviado=bar" evalMacro('[MACRO("[email protected]:GURPSNOH"): "AtributoEfetivoEnviado="+AtributoEfetivo+"; TesteEnviado="+teste]')] is probably litera...
by bubblobill
Wed Sep 09, 2020 11:27 pm
Forum: User Creations
Topic: Motion Tracker - Just like in Aliens®
Replies: 14
Views: 448

Re: Motion Tracker - Just like in Aliens®

Oh great, just blame it on me. Pretty hard to nail down without the ability to replicate. The problem with tracking it down is that the line of code does not explicitly exist. It could be coming from json.toVars or the JavaScript equivalent. I can get it to spit out an error if I choose a HTML Symbo...
by bubblobill
Tue Sep 08, 2020 12:19 am
Forum: User Creations
Topic: Alien RPG framework
Replies: 2
Views: 1479

Re: Alien RPG framework

Anyone interested in Alien RPG this might want to take advantage of this new toy;
Motion Tracker
by bubblobill
Mon Sep 07, 2020 11:30 pm
Forum: User Creations
Topic: Motion Tracker - Just like in Aliens®
Replies: 14
Views: 448

Re: Motion Tracker - Just like in Aliens®

Okay, This - Invalid condition in IF(isOwnedByAll(tok)) roll option. Statement options (if any): if(isOwnedByAll(tok)) Statement Body : macro.return = getAllPlayerNames() ; macro.return = getOwners("json",tok) seems to occur when there are preferences for a tokenId that does not exist like the lefto...
by bubblobill
Sun Sep 06, 2020 10:20 pm
Forum: User Creations
Topic: Motion Tracker - Just like in Aliens®
Replies: 14
Views: 448

Motion Tracker - Just like in Aliens®

Vision Blocking got you down? Want to see through walls? No problem, we have you covered. It slices. It dices. It makes french fries in thirty seconds. It is the latest and greatest thing. It is.. Motion Tracker snip1.JPG With more settings than you can poke a stick at**. You can customise; The det...
by bubblobill
Sun Sep 06, 2020 12:44 pm
Forum: MapTool
Topic: Overlays.
Replies: 52
Views: 1721

Re: Overlays.

Here you go. Try the unofficial, almost entirely functional, pre-release, not quite polished, beta version.
lib_motion_tracker.20200907.rptok
(462.71 KiB) Downloaded 5 times
by bubblobill
Mon Aug 31, 2020 8:40 pm
Forum: Macros
Topic: DungeonDraft, portals and tokens
Replies: 6
Views: 286

Re: DungeonDraft, portals and tokens

Replace the images on the door tokens with your transparent PNG and you will still get the VBL functionality
by bubblobill
Mon Aug 31, 2020 7:05 am
Forum: MapTool
Topic: Issue rotating tokens/objects on version 1.7 (MAC)
Replies: 2
Views: 111

Re: Issue rotating tokens/objects on version 1.7 (MAC)

This is a problem with Mac's exciting new high precision mouse driver.

Until it is sorted in future versions you can change facing using the context menu or keyboard shortcuts.

Shift+LeftArrow and Shift+RightArrow On TOKEN layer: Same as Shift+MouseWheel: rotate token.
by bubblobill
Mon Aug 31, 2020 6:58 am
Forum: Macros
Topic: DungeonDraft, portals and tokens
Replies: 6
Views: 286

Re: DungeonDraft, portals and tokens

You might want to look at Smart Doors
Then you can just use a Smart Door in your copyToken().
by bubblobill
Mon Aug 24, 2020 4:19 am
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 60
Views: 1986

Re: Mini Macro Challenges (Interest)

Does getVBL() return all shapes present in the area or calculate the sections in the area. e.g. If I have a rectangle from (0,0) to (400,100) and I get VBL in the square (0,0) to (200,200), is the VBL returned the whole rectangle or just the intersection (0,0) to (200,100)? The VBL on my Smart Doors...

Go to advanced search