Managed to add an import menu where you can choose the exported xml file from pcgen and the png image for your character and you get a new tocken in the map with the data coming from PCgen.
Very cool. Sounds like a great idea. I'd like to have something to generate PF NPCs quickly...
Does this comment mean that you added the option to MapTool? Or was it CharTool? (It sounds like MapTool.)
Now will work on the xml sheet for PCgen since I think that it could be nice to use the one coming from Pathfinder.
Any suggestion on a ideal general token to use (one with the most of usefull macro)?
Usefulness of macros is directly related to the campaign properties, so there's not going to be a single good token to use as a template. However, I don't doubt that we'll soon have a way to do a multi-select drag-n-drop of macros from one token to another (hint, hint) so copying macros around won't be so much trouble.
Perhaps the easiest way to handle this is for your import function to accept an existing rptok, an XML file, and one or two PNG images (token and portrait). It then reads the rptok and replaces the sections with the XML, then adds the images.
Although thinking about it, the only stuff that's practical to import is the basic stats: ability scores, skills, and so forth. Every campaign is likely to have different properties assigned, so not much else can be done.
Oh, if you choose a token for your "template" that simply makes calls to a Lib:token, your macros won't have to change when the campaign properties do. I'm almost thinking that Lib:tokens should be exported when the campaign properties are exported...