Pregens

From Fantasy Grounds Wiki
Jump to: navigation, search

Overview

Pregens or Pregenerated Characters are characters that can be imported from a module by clicking a "+" button next to their name.

You can only add pregens by unzipping your module and editing your XML directly. Keep in mind if you re-export the module any changes you made by unzipping will be lost.

How to add Pregens

Adding pregenerated characters to a module can only be done through direct XML modification.

In the library section, you need to add a link like this:

<id-00007>
     <librarylink type="windowreference">
          <class>pregencharselect</class>
          <recordname>[email protected][module name]</recordname>
     </librarylink>
     <name type="string">Pregenerated Characters</name>
</id-00007>

Where [module name] is the name of your module. You can find the name of your module by looking at the other entries in the library section.

Then, you need to add the pregencharsheet tag to the module under the root tag, with entries for each pregen character.

<pregencharsheet>
     <hilldwarf_soldier_>
     ...
     </hilldwarf_soldier_>
     <human_noble_>
     ...
     </human_noble_>
     ...
</pregencharsheet>