Search found 32 matches

by JamesManhattan
Thu May 26, 2011 12:07 pm
Forum: Tutorials
Topic: Converting the .dnd4e file into JSON, or csv or a token
Replies: 11
Views: 18836

Re: Converting the .dnd4e file into JSON, or csv or a token

Here's a simple HTML file that uses java to apply the xsl translation to an xml file and show the results. No plugin required. Currently it only works in Firefox, I havent tried Opera etc. but Internet Explorer security measures block the java. It must be placed in the same directory as both the .XS...
by JamesManhattan
Fri Apr 08, 2011 2:30 pm
Forum: General Discussion
Topic: List of Dungeon Magazine 4E adventures
Replies: 8
Views: 5007

Re: List of Dungeon Magazine 4E adventures

This is list is very well maintained.
You have to be logged into http://www.wizards.com/DND/ with cookies enabled
before you can get to the list here-> http://community.wizards.com/dndinsider ... Adventures
by JamesManhattan
Fri Apr 08, 2011 9:51 am
Forum: Tutorials
Topic: Converting the .dnd4e file into JSON, or csv or a token
Replies: 11
Views: 18836

Re: Converting the .dnd4e file into JSON, or csv or a token

Apparently there is a Firefox plugin that will open a web-page (or xml file) and apply an xslt transformation to it. https://addons.mozilla.org/en-us/firefox/addon/xsl-results/ I haven't tried it, but it looks like you choose an xsl translation file on your hard-drive, then browse to a web-page onli...
by JamesManhattan
Thu Apr 07, 2011 8:35 pm
Forum: Tutorials
Topic: Converting the .dnd4e file into JSON, or csv or a token
Replies: 11
Views: 18836

Converting the .dnd4e file into JSON, or csv or a token

It's easy to have your way with the .dnd4e character save files if you use xslt. Here are two working methods to dissect the .dnd4e files and re-assemble them into whatever format you could ever want. The first one makes a giant JSON variable for MapTool, the second makes a web page that has tables ...
by JamesManhattan
Thu Feb 11, 2010 2:54 pm
Forum: User Creations
Topic: Paste 4E Character Sheet: parse it, get all powers
Replies: 13
Views: 4488

Re: Paste 4E Character Sheet: parse it, get all powers

Ahhh I'm figuring out json arrays, they are much better. I will transform all the powers into arrays that are sortable and callable. I do love arrays much better than xml.
by JamesManhattan
Tue Feb 09, 2010 5:21 pm
Forum: User Creations
Topic: Paste 4e Monster from a pdf: get stats and a monster card
Replies: 106
Views: 24163

Re: Paste 4e Monster from a pdf: get stats and a monster card

Are you "selecting" the token when you press F2 and F3? The macro needs to know what object to save data to and get data from. Sorry, I haven't revisited the monster macros to streamline them yet because I was working on the same thing for player character sheets. See here http://forums.rp...
by JamesManhattan
Mon Feb 08, 2010 10:11 pm
Forum: User Creations
Topic: Paste 4E Character Sheet: parse it, get all powers
Replies: 13
Views: 4488

Paste 4E Character Sheet: parse it, get all powers

Since I got such positive feedback on a monster pdf parser here http://forums.rptools.net/viewtopic.php?f=8&t=13237 Here's what I have so far for a character sheet parser. You can print a character builder file to a pdf, highlight all of it, paste it into a textbox, then the macros will parse it...
by JamesManhattan
Thu Feb 04, 2010 8:34 am
Forum: User Creations
Topic: Paste 4e Monster from a pdf: get stats and a monster card
Replies: 106
Views: 24163

Re: Paste 4e Monster from a pdf: get stats and a monster card

Rumble: I'll definitely use the SetProperty for StatCard. I didn't know you could do that. If I made a minor change in the code and each time I found a regex match, I stored the match in it's own variable, those variables could all be collected later and used in whatever framework. I'm working on se...
by JamesManhattan
Tue Feb 02, 2010 5:17 pm
Forum: User Creations
Topic: Paste 4e Monster from a pdf: get stats and a monster card
Replies: 106
Views: 24163

Re: Paste Monster from a pdf: get stats and a monster card

Take a look at the macros, they are commented. On the EditMonster macro you'll see how easy it is to pull AC from a monster. You can use those variables or change them to match your framework. For the card; I just parse the text using regular expressions and put html tags around certain parts. If I ...
by JamesManhattan
Tue Feb 02, 2010 10:43 am
Forum: User Creations
Topic: Paste 4e Monster from a pdf: get stats and a monster card
Replies: 106
Views: 24163

Re: Paste Monster from a pdf: get stats and a monster card

Yeah, it works with the online compendium text.
by JamesManhattan
Tue Feb 02, 2010 8:18 am
Forum: User Creations
Topic: Paste 4e Monster from a pdf: get stats and a monster card
Replies: 106
Views: 24163

Paste 4e Monster from a pdf: get stats and a monster card

Here's a token that contains 4 macros. You can paste directly from a pdf and the macros will parse the text, gather all the stats, make your token stats match those stats, then create a formatted monster card that has clickable macros to roll attacks and damage. (I'm working on one for player charac...
by JamesManhattan
Tue Jan 26, 2010 7:31 pm
Forum: Macros
Topic: Multi-target attack
Replies: 37
Views: 2078

Re: Multi-target attack

Try out this also, let's you highlight multiple enemies, attack all of them, then tells you whether you hit or not. [h,if(hasImpersonated()==1):DefaultAttack=getProperty("BaseAttack",getImpersonated());DefaultAttack=1] [h:HitStyle="background-color:#0000FF;color:white;font-weight:bold...
by JamesManhattan
Wed Dec 16, 2009 7:53 pm
Forum: User Creations
Topic: Tool that downloads 4Emonster stats, makes setup macrosets
Replies: 22
Views: 2541

Re: Tool that downloads 4Emonster stats, makes setup macrosets

Arrgh I'm so sorry I took so long to fix this. There is one simple . missing in the line, at the front of Range Set SetupLoc = Range("A1:A2000").Find("Setup_Macros.mtmacset", LookIn:=xlValues) should be Set SetupLoc = .Range("A1:A2000").Find("Setup_Macros.mtmacset&...
by JamesManhattan
Mon Dec 14, 2009 10:28 am
Forum: User Creations
Topic: Tool to read .dnd4e character file->output macroset (works)
Replies: 28
Views: 9603

Re: Tool to read .dnd4e xml file,dn-load powers->output macroset

I have been trying to get it to output the info like so: Is there any way to strip out all of the XML/HTML so it would be easier to implement this? Dude that code just looks scary. If you look at my monster spreadsheet I put in an excel function called xmlparser. You could use that to parse out the...
by JamesManhattan
Fri Dec 11, 2009 4:46 pm
Forum: User Creations
Topic: Tool that downloads 4Emonster stats, makes setup macrosets
Replies: 22
Views: 2541

Re: Tool that downloads 4Emonster stats, makes setup macrosets

I get run-time error 91... Object Variable or With block variable not set. This is the line Set TextFile = fs.CreateTextFile(ThisWorkbook.Sheets("List").Range("K9").Value & "\" & .Range(SetupLoc.Address).Offset(0, i).Value, ForWriting) I'm not sure exactly what...

Go to advanced search