This is a great time tracking toolbar. But how do I view the code? Right clicking over one of the buttons doesn't bring up 'Edit' in a short-cut menu. There's no short-cut menu appearing at all!
I'd love to take this logic and use it in an existing framework of mine.
Search found 30 matches
- Mon Jan 01, 2024 3:27 pm
- Forum: D&D 3.5/Pathfinder 1e Campaign Macros
- Topic: [Pathfinder] TR's Toolbar v1
- Replies: 48
- Views: 61428
- Fri Sep 29, 2023 11:48 am
- Forum: Macros
- Topic: Recursion help
- Replies: 3
- Views: 357
Re: Recursion help
Ah, I missed one of your questions. For a given token:
arrIn tells me every item in a given container.
arrOut tells me every item that's not the container and that's not inside the container.
arrIn tells me every item in a given container.
arrOut tells me every item that's not the container and that's not inside the container.
- Fri Sep 29, 2023 11:41 am
- Forum: Macros
- Topic: Recursion help
- Replies: 3
- Views: 357
Re: Recursion help
Alias, Thanks for your help. If you were to let players stuff things inside a container which itself is inside a container, you'd have to have recursion to identify everything that's being held. For example, if my player finds a small box with gemstones and then puts that box in his backpack, you'd ...
- Thu Sep 28, 2023 1:42 pm
- Forum: Macros
- Topic: Recursion help
- Replies: 3
- Views: 357
Recursion help
Hi, I'm working on a simple inventory management for a fantasy RPG and I'm running into an error for json.get on the 2nd recursive call to my function. I'm using recursion because someone could have an item inside a container which is also carried in another container. Also, when a container (a back...
- Sun Aug 20, 2023 6:02 pm
- Forum: Macros
- Topic: Stack Overflow - reading string in Library token property
- Replies: 3
- Views: 344
Re: Stack Overflow - reading string in Library token property
ah, found the problem. I'm getting errors w/ json.get on this Lib property. Empty string values in a JSON object can't be like this:
,"Desc":,
They have to be like this:
,"Desc":" ",
,"Desc":,
They have to be like this:
,"Desc":" ",
- Sun Aug 20, 2023 3:13 pm
- Forum: Macros
- Topic: Stack Overflow - reading string in Library token property
- Replies: 3
- Views: 344
Stack Overflow - reading string in Library token property
Hi, I've got a huge string (nearly 29k characters) stored in a lib token property. My macros are apparently unable to properly retrieve the values stored here. The string is a properly formatted JSON array. When trying to display the string to chat, I get the stack overflow error. Any suggestions on...
- Thu Aug 10, 2023 10:23 am
- Forum: Drop-In Macro Resources
- Topic: Plo's Inventory Manager
- Replies: 111
- Views: 54484
Re: Plo's Inventory Manager
Has this been updated at all within the past few years? I've been working on a simple set of macros where players can manipulate the items stored on their tokens. It's slow going! At present, I maintain the PCs' inventory on an Excel tool I built years ago and then port that raw data into Maptool. T...
- Tue Jul 04, 2023 6:22 am
- Forum: MapTool
- Topic: VBL Sometimes Not Working
- Replies: 2
- Views: 387
VBL Sometimes Not Working
Hi all, During gameplay, we're seeing a very sporadic glitch where the VBL isn't working as expected and players will see an entire room they haven't entered yet, despite the fact that the area is entirely surrounded by a VBL line. We're using 1.13.1, and we noticed this problem on an earlier versio...
- Tue Jul 04, 2023 6:15 am
- Forum: MapTool
- Topic: Best approach for handling overlapping areas on a map ?
- Replies: 2
- Views: 443
Best approach for handling overlapping areas on a map ?
Does anyone have a preferred method of handling dungeon maps that contain overlapping sections? What I'm referring to are maps that show passages or rooms running either above or underneath other areas on the same map. You can see an example of what I'm talking about here: https://dysonlogos.blog/20...
- Sat Mar 11, 2023 8:22 pm
- Forum: Macros
- Topic: Suddenly having errors with json.get
- Replies: 7
- Views: 1349
Re: Suddenly having errors with json.get
False alarm .. this was a data problem (not sure where, but I just re-created the JSON object array to get a clean version).
The macro logic works fine.
The macro logic works fine.
- Sat Mar 11, 2023 8:02 pm
- Forum: Macros
- Topic: Suddenly having errors with json.get
- Replies: 7
- Views: 1349
Re: Suddenly having errors with json.get
Getting another weird result with JSON.Get. I've got this JSON object array in a library token named Utility; the property is called Skills and the 1st object in the array looks like this: [{"PSA":"Military","Skill":"Beam Weapons","Subskill":"no...
- Sat Jan 21, 2023 12:48 pm
- Forum: MapTool
- Topic: Can UDF return a JSON array?
- Replies: 3
- Views: 220
Re: Can UDF return a JSON array?
Yeah, this works beautifully, but I need to add another bit of logic and am thinking that json.union and/or .merge may be useful. I've got powers defined at character creation in a property named defSpecs. Then, powers gained or adjusted during play go into tmpSpecs. The keys are identical for all o...
- Thu Jan 19, 2023 7:53 pm
- Forum: MapTool
- Topic: Can UDF return a JSON array?
- Replies: 3
- Views: 220
Can UDF return a JSON array?
I'm thinking the answer is yes, but here's why I'm asking: I've got a superhero game where all the Powers, Skills, etc are in a JSON array of JSON objects, stored on the token in a property called Specs. This works well, but there's times when powers and ability scores can fluctuate (think of the Hu...
- Mon Jan 02, 2023 8:04 pm
- Forum: Macros
- Topic: JSON.Append is doing something weird
- Replies: 3
- Views: 412
Re: JSON.Append is doing something weird
I'm smacking my forehead over here.
Thank you again!!
Thank you again!!
- Mon Jan 02, 2023 7:24 pm
- Forum: Macros
- Topic: JSON.Append is doing something weird
- Replies: 3
- Views: 412
JSON.Append is doing something weird
for some reason, my JSON object array looks like this: [ { key, val, }, [ { key, val } ], [ { key, val } ] ] ] <!--make list of item IDs --> [h, foreach(item, Items), CODE: { [h, foreach(chgd, ChargedItems), CODE: { [h: iID = json.get(chgd, "ID")] [h: iItemID = json.get(item, "ID"...