-
Notifications
You must be signed in to change notification settings - Fork 0
ImportCharacter.js
Allows the GM to copy-paste the text of a character from a pdf into a handout. The GM can then use that text to convert them into a fleshed out character with links to their various abilities, all of their Attributes filled out, and a Macro setup for each of their weapons.
It must be noted that this code is not user friendly. Users must be sure to follow the text formatting instructions carefully or the import will not work as desired. The pdfs can mix lines together or skip content all together, and the code is unable to predict those copy-paste errors. See INQCharacterImportParser.js for details.
!Import Character <character sheet name>
Searches for the roll20 character sheet with the exact given name. The text in the bio is parsed using INQCharacterImportParser.js and the roll20 character sheet is detailed using INQCharacter.prototype.toCharacterObj(). However, the bio will be left intact as it is unlikely that all of the details will be correctly parsed on your first attempt.
If there is more than one roll20 character sheet with the exact given name, the user will be warned and the API command will be aborted.
Keep in mind that new roll20 attributes and abilities will not show up on a roll20 character sheet until the sheet has been closed and reopened. Switching tabs will not suffice.
Though there are many modifications that could be made to this, it is the lowest priority at this time. This is due to the amount of work that would be required to make it entirely user friendly, the amount to which it was written to suit my personal format, and its use only in the preparation of games.