Search found 18 matches
- Thu May 21, 2020 2:05 pm
- Forum: MapTool
- Topic: Json Objects fool me...
- Replies: 3
- Views: 431
Re: Json Objects fool me...
The Table return an array with objects inside. That's the problem... But with someone on Discord the problem was explained and solved. First read the array, then take the object.
- Thu May 21, 2020 8:47 am
- Forum: MapTool
- Topic: Json Objects fool me...
- Replies: 3
- Views: 431
Json Objects fool me...
Well, I had a table : [ { "Titre":"Araign\u00e9e", "Type":"Grosse", "Terrain":"Non-arctique", "Frequence":"Commun", "Intelligence":"Animale (1)", "Alignement":"Neutre", "Class...
- Sat Apr 04, 2020 2:02 am
- Forum: MapTool
- Topic: Is it a bug ?
- Replies: 2
- Views: 416
Is it a bug ?
Well, yesterday I plan to try my D&D 2.5 Maptool Framework. With "real" people AKA my Kids as players. And... One of them "impressonate" another token and become able to speak as him. Without any GM rights... For me is a bug ! They can move on the entire campaign is the map i...
- Thu Mar 26, 2020 1:52 pm
- Forum: MapTool
- Topic: Missing image token
- Replies: 0
- Views: 891
Missing image token
Hello, On a map that I made yesterday, I put some custom images tokens made with TokenTool earlier or those who came with maptools. Some was NPC pictures, some objects like chests on the "object" layer. This morning, writing my campaign, I load my file and... many red crosses instead of th...
- Tue Mar 24, 2020 10:57 am
- Forum: Macros
- Topic: regex json.path.read
- Replies: 4
- Views: 705
Re: regex json.path.read
So i tried your solution with strformat and it worked and is a lot more cleaner so big thanks and for your way to escape the single quote wouldn't work because even if you have 2 quotes it will not be equal to the string that is searching for
- Tue Mar 24, 2020 10:26 am
- Forum: Macros
- Topic: regex json.path.read
- Replies: 4
- Views: 705
Re: regex json.path.read
Ok so i tried to escape as you said but it would still give me the error for json.path.read so i tried buy using ' the html code of ' and when i was showing it, it gave me the word correctly but in regex he didn't find it and return anything so i tried other things and the solution was actua...
- Mon Mar 23, 2020 2:36 pm
- Forum: Macros
- Topic: regex json.path.read
- Replies: 4
- Views: 705
regex json.path.read
I currently have a problem to retrieve in my database some data using this expression [h: macro.return = json.path.read(butins, "\$.[?(@.Objet == '" + butinName + "' )]")] knowing that this expression work for any string except when butinName contain this char ' So i wondered if ...
- Fri Mar 20, 2020 5:58 pm
- Forum: MapTool
- Topic: Something wrong with copytoken() ?
- Replies: 8
- Views: 835
Re: Something wrong with copytoken() ?
Well it's working now. [H: x = getTokenX(0)] [H: y = getTokenY(0)] fix the start point of spawn. For the relative position, I'm happy with that but it's seems "strange" as you write.
Thank you for helping.
Thank you for helping.
- Fri Mar 20, 2020 11:08 am
- Forum: MapTool
- Topic: Something wrong with copytoken() ?
- Replies: 8
- Views: 835
Re: Something wrong with copytoken() ?
Well that's rather strange but ye your solution above worked just fine but you are sure the +2 inc and +1 in y isn't caused by those 2lines of codes ?
x: '[r: x = x + 2]',
y: '[r: y = y + 1]',
Because logically it will take the position and add +2 in x and +1 in y no ?
x: '[r: x = x + 2]',
y: '[r: y = y + 1]',
Because logically it will take the position and add +2 in x and +1 in y no ?
- Fri Mar 20, 2020 9:28 am
- Forum: MapTool
- Topic: Something wrong with copytoken() ?
- Replies: 8
- Views: 835
Re: Something wrong with copytoken() ?
I use version 1.5.14
The first Rat is on my first map ("Acceuil") and copied on the third map. When I use "usedistance", set to 1 or 0, nothing change same for delta: 0 or 1. My Rats pop and the same corner of my map. Seems this 2 parameters are "useless".
The first Rat is on my first map ("Acceuil") and copied on the third map. When I use "usedistance", set to 1 or 0, nothing change same for delta: 0 or 1. My Rats pop and the same corner of my map. Seems this 2 parameters are "useless".
- Fri Mar 20, 2020 5:00 am
- Forum: MapTool
- Topic: Something wrong with copytoken() ?
- Replies: 8
- Views: 835
Something wrong with copytoken() ?
or it's just me... but, I'm trying to spawn an evil rat near a bad guy necromancer. I wrote a macro in my necromancer : --- [h: CurrentX = getTokenX()] [h: CurrentY = getTokenY()] [h: x = CurrentX] [h: y = CurrentY] [h: NumRats = 1d4 +1] [h: cloneNo = 0] [h: updates = "{ name: 'Rat - [r: cloneN...
- Thu Mar 05, 2020 2:44 pm
- Forum: MapTool
- Topic: Form helping needed !
- Replies: 1
- Views: 361
Re: Form helping needed !
Solved ! In the wiki https://lmwcs.com/rptools/wiki/Introduction_to_Dialogs_and_Frames it says : ----- <!-- Finally set out return value --> [h: macro.return = numWeapons] ------- You can test it by running the following code from chat a few times [macro("NextWeaponNumber@Lib:Test"): "...
- Thu Mar 05, 2020 11:21 am
- Forum: MapTool
- Topic: Form helping needed !
- Replies: 1
- Views: 361
Form helping needed !
Well, here I am again... Today's I'm in the form()... I read the Wiki and I want to do my own thing and... I failed ! 1) CharSheetMain [... declaration sample...] [h: Rid = Lire] [h: htmm =""] <table> [h: class = "oddRow"] [h: passedVars = json.append(class, Classe, Inc, S1, S2, ...
- Wed Mar 04, 2020 1:55 am
- Forum: MapTool
- Topic: Regex or not ?
- Replies: 5
- Views: 609
Re: Regex or not ?
Thank you ! Merci !
Very helpful.
Very helpful.
- Tue Mar 03, 2020 2:57 pm
- Forum: MapTool
- Topic: Regex or not ?
- Replies: 5
- Views: 609
Re: Regex or not ?
MapTool Version: 1.5.14
And I don't need in fact the result of 2D6 or whatever, I just need the "2D6" in text.
And I have also try few wiki samples with same strange results. I'm testing my things on "https://regexr.com" and that's works.
Voilà...
And I don't need in fact the result of 2D6 or whatever, I just need the "2D6" in text.
And I have also try few wiki samples with same strange results. I'm testing my things on "https://regexr.com" and that's works.
Voilà...