Search found 891 matches
- Mon Feb 19, 2024 11:32 am
- Forum: Macros
- Topic: macroLink issue resurfaces...
- Replies: 4
- Views: 128
Re: macroLink issue resurfaces...
Thanks AM, all your suggestions seemed to get me squared away, appreciate it!
- Fri Feb 16, 2024 9:44 am
- Forum: Macros
- Topic: macroLink issue resurfaces...
- Replies: 4
- Views: 128
Re: macroLink issue resurfaces...
Autoexecute is checked and the broadcast is just sending to either the GM (for tokens with no owners, usually NPCs) or to the owner of the player token. However, I did try your suggest of using execLink, like so... [h, if(getState("BlessingofFervor")), code : { [h : setState("BofBonus...
- Thu Feb 15, 2024 6:36 pm
- Forum: Macros
- Topic: macroLink issue resurfaces...
- Replies: 4
- Views: 128
macroLink issue resurfaces...
I wrote this into my framework many years ago.... [h, if(getState("BlessingofFervor")), code : { [h: tokenOwner = getOwners("json",initToken)] [h: tokenOwner = json.get(tokenOwner,0)] <!-- only 1 owner --> [h: linkText = macroLink("Click for BOF options", "DisplayB...
- Fri Jul 14, 2023 4:38 pm
- Forum: MapTool
- Topic: Hex maps and VBL
- Replies: 0
- Views: 981
Hex maps and VBL
I started looking at using Hex maps for a project and then realized there is some funkiness with VBL. If you draw a square "room", tokens are visible outside of the walls in a lot of places, since the lines go through the hexes. Anyone who is more familiar with hex maps who might know how ...
- Fri Jul 14, 2023 4:37 pm
- Forum: MapTool
- Topic: Handling "in game" fog
- Replies: 4
- Views: 492
Re: Handling "in game" fog
I ended up doing this, in the "onTokenMove" macro...we'll see how it pans out in an actual game, can always comment it out if it blows up performance. Largely does the trick of automatically changing an "inFog" property on the token and adjusting their vision sight type as they m...
- Thu Jul 13, 2023 4:20 pm
- Forum: MapTool
- Topic: Handling "in game" fog
- Replies: 4
- Views: 492
Re: Handling "in game" fog
Yeah, I've messed with that some; it works pretty well for darkness effects but not so much for "limiting" vision the way fog does. But worht a 2nd look, I suppose...
- Thu Jul 13, 2023 4:18 pm
- Forum: MapTool
- Topic: Get all light sources on given map
- Replies: 2
- Views: 360
Re: Get all light sources on given map
Oh man, didn't even THINK of to look at "getTokens"...that could totally work, thanks!
- Thu Jul 13, 2023 2:34 pm
- Forum: MapTool
- Topic: Handling "in game" fog
- Replies: 4
- Views: 492
Handling "in game" fog
I was wondering if anyone might have a solution for this. D&D and Pathfinder both have the concept, ins spells and whatnot, of "fog". You cast a spell and it creates a fog cloud at a given point/given radius...or a fog cloud surrounds you and moves with you. Most of these work, game wi...
- Thu Jul 13, 2023 2:30 pm
- Forum: MapTool
- Topic: Get all light sources on given map
- Replies: 2
- Views: 360
Get all light sources on given map
Is there a way to do this? The closest thing I could find would be cycling throught ALL the tokens on the map and seeing if each one had a light source assigned to it. This seems wildly ineffecient but its the closest I could come up with...is there a better way to do this?
- Tue Jul 11, 2023 11:08 am
- Forum: MapTool
- Topic: createToken from table image results in red question mark
- Replies: 6
- Views: 631
Re: createToken from table image results in red question mark
Yeah, no difference in results after adding the "{}" in the json.set; players still get the big red question mark when this is called while running a server. Here's a weird twist...if the player who sees the big red X goes to a different map, then comes back to the original map, now they s...
- Tue Jul 11, 2023 11:05 am
- Forum: MapTool
- Topic: onCampaignLoad force players to certain map
- Replies: 2
- Views: 418
onCampaignLoad force players to certain map
Is there a way, via a macro, to force players loading a campaign to go to a certain map? Not talking about moving tokens, talking about anyone who enters a campaign.
- Thu Jun 29, 2023 1:57 pm
- Forum: MapTool
- Topic: Maptools scripting "language"
- Replies: 1
- Views: 516
Maptools scripting "language"
What would folks say is the closest programming language that maptool's macros compares to? java, C#, python...? Opinions, I know, will be varied, just looking to see what people would compare it to.
- Wed Jun 21, 2023 10:18 am
- Forum: MapTool
- Topic: createToken from table image results in red question mark
- Replies: 6
- Views: 631
Re: createToken from table image results in red question mark
While I have no issue making that change, I don't actually think its the problem. As I said, if I'm running the code locally, the image immediately appears. Its only when its running on a server that we're seeing the red question mark issue.
- Tue Jun 20, 2023 2:10 pm
- Forum: MapTool
- Topic: createToken from table image results in red question mark
- Replies: 6
- Views: 631
Re: createToken from table image results in red question mark
Yes, both Show Table to Players and Allow Lookup By Players are checked off on the table.
- Tue Jun 20, 2023 11:02 am
- Forum: MapTool
- Topic: createToken from table image results in red question mark
- Replies: 6
- Views: 631
createToken from table image results in red question mark
Is there something wrong with this? [h : burstImage = tableImage("BurstTemplates", radiusValue)] [h : newBurstId = createToken(json.set("","tokenImage", burstImage,"x",burstPointX,"y",burstPointY,"useDistance",0, "name", "Bur...