Search found 8557 matches

by aliasmask
Sat Sep 26, 2020 2:23 am
Forum: Macros
Topic: Trying to extract the beginning of a string
Replies: 6
Views: 44

Re: Trying to extract the beginning of a string

Is name in []'s? Is Major in ()'s?

So, if name is any character, except ()'s, then you can just use ( as the list breaking point.

Code: Select all

[H: name = listget(myString,0,"(")]
by aliasmask
Sun Sep 13, 2020 7:43 pm
Forum: Ideas for New Applications
Topic: How to disable avatar?
Replies: 1
Views: 43

Re: How to disable avatar?

What do you mean? (I'm also assuming this may be a spambot post)
by aliasmask
Sat Sep 12, 2020 9:10 am
Forum: Macros
Topic: Help with Json Path error
Replies: 6
Views: 89

Re: Help with Json Path error

Hm, that will only work if the objects are the same. Perhaps my found path isn't correct, still new to that. Maybe adding [*] to the end will return the object in that array position.
by aliasmask
Fri Sep 11, 2020 3:07 am
Forum: Macros
Topic: Help with Json Path error
Replies: 6
Views: 89

Re: Help with Json Path error

Maybe try an array of objects. Works better with the json.path functions. Untested <!-- just for testing, WeaponsLibrary should be an array of weapon objects --> [H: WeaponsLibrary = "[]"] [h: weaponObj = json.set("{}", "Name",Name, "SRange",SRange, "MRange",MRange, "LRange",LRange, "NumDMG",NumDMG,...
by aliasmask
Sun Aug 23, 2020 9:42 pm
Forum: Macros
Topic: Mini Macro Challenges (Interest)
Replies: 60
Views: 1913

Re: Mini Macro Challenges (Interest)

That is indeed some higher math stuff, but depending on your goal/reason maybe movedOverDrawing could be of help.
by aliasmask
Thu Aug 20, 2020 10:07 pm
Forum: Macros
Topic: switch for numerical values?
Replies: 4
Views: 84

Re: switch for numerical values?

Here's another non-table method.

Code: Select all

<!-- use highest to demark breaks. -->
[H: indexes = "20,50,60,90,100"]
[H: values = "A,B,C,D,E"]

[H: roll = 1d100]
[H: result = 0]

[H, foreach(index,indexes), code: {
   [H, if(roll > index): result = result + 1]
}]

[H: finalValue = listGet(values,result)]
by aliasmask
Thu Aug 20, 2020 9:29 pm
Forum: D&D 3.5/Pathfinder 1e Campaign Macros
Topic: 91.08 Pathfinder + D&D3.5 Framework
Replies: 175
Views: 45633

Re: 91.08 Pathfinder + D&D3.5 Framework

I would add it as an item. I think there's an edit items button.
by aliasmask
Tue Aug 11, 2020 3:41 am
Forum: Macros
Topic: Is it possible to use and change Properties in a Macro without using their Property Name in the Macro?
Replies: 5
Views: 171

Re: Is it possible to use and change Properties in a Macro without using their Property Name in the Macro?

If given a property name as a string you can get the value a couple of ways.

Code: Select all

[H: value = getProperty(propName)]

OR

[H: value = eval(propName)]
by aliasmask
Fri Aug 07, 2020 2:49 pm
Forum: D&D 3.5/Pathfinder 1e Campaign Macros
Topic: 91.08 Pathfinder + D&D3.5 Framework
Replies: 175
Views: 45633

Re: 91.08 Pathfinder + D&D3.5 Framework

Fixed a longtime "bug" which is more like error checking for bad data in the skills. Now if you leave a skill mod blank it will put a 0 there. This prevents funky output on skill checks. This change is made in charSkillCheck [H: sizeList = table("SysVars", json.get(table("SysVars", 0), "sizeList"))]...
by aliasmask
Fri Aug 07, 2020 2:39 pm
Forum: D&D 3.5/Pathfinder 1e Campaign Macros
Topic: 91.08 Pathfinder + D&D3.5 Framework
Replies: 175
Views: 45633

Re: 91.08 Pathfinder + D&D3.5 Framework

I did make a stealth update to the "Compatible" version a lit bit ago. Here is that change. Sheet Macro in campaign window forces token type. Just copied code from Edit Char which does the same thing. Some people forget to change the token type from Basic and get errors. This prevents that. [H: ids ...
by aliasmask
Fri Aug 07, 2020 2:35 pm
Forum: D&D 3.5/Pathfinder 1e Campaign Macros
Topic: 91.08 Pathfinder + D&D3.5 Framework
Replies: 175
Views: 45633

Re: 91.08 Pathfinder + D&D3.5 Framework

Poe, thanks for the update. I made a small change to the extra crit damage. Basically, the last line was forgotten, so I added it. <!-- Extra Critical Damage --> [H: DmgExtraCrit.total = 0] [H, if(! isManyshot && isThreat && isNumber(WpnDmgExtraCrit)), code: { [H, if(WpnDmgExtraCrit): critdamageTipO...
by aliasmask
Tue Aug 04, 2020 9:37 pm
Forum: Bug Reports
Topic: MT1.7.0 Animated assets can be added to library but are invisible on maps
Replies: 2
Views: 104

Re: MT1.7.0 Animated assets can be added to library but are invisible on maps

You can use gifs in chat, dialog, input and frame, but not in dialog5, frame5 or on the map.
by aliasmask
Sun Aug 02, 2020 7:39 pm
Forum: Macros
Topic: Found empty property error using json.path.read
Replies: 7
Views: 175

Re: Found empty property error using json.path.read

Yeah, that's a weird one. Seems like a bug to me.
by aliasmask
Sun Aug 02, 2020 10:13 am
Forum: Macros
Topic: Found empty property error using json.path.read
Replies: 7
Views: 175

Re: Found empty property error using json.path.read

I would try and remove the \$ and see if it works. There's also a couple of config options that can be set to fine tune the return value result.
by aliasmask
Sun Aug 02, 2020 4:25 am
Forum: Macros
Topic: Getting an Input field to not overwrite token variables
Replies: 2
Views: 91

Re: Getting an Input field to not overwrite token variables

It works better if you have all the variables in a json, but you could make a list, loop through list and then assign values. This is super basic and could be made more user friendly, but this demonstrates the basics of what I would do. <!-- list token properties to use in input --> [H: myProps = "H...

Go to advanced search