Skip to content

djsutherland/tokenization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some Python utilities to make MapTool tokens for Pathfinder NPCs/monsters/etc.

Currently pretty specific to our particular campaign properties / etc.

tokens.py

Interface to make MapTool token files.

Example usage:

import tokens
import requests

r = requests.get('http://vignette3.wikia.nocookie.net/forgottenrealms'
                 '/images/3/36/Monster_Manual_5e_-_Ogre_-_p237.jpg')
image = tokens.Asset('ogre', 'jpg', r.content)
t = tokens.Token(image=image, name='Ogre', size='Large',
    properties={
        'Strength': 21, 'Dexterity': 8, 'Constitution': 15,
        'Intelligence': 6, 'Wisdom': 10, 'Charisma': 7,
        'BAB': 3, 'MaxHP': 30,
        'Armor': '{4+5}',
    }
)
t.make_file('ogre.rptok')

Releases

No releases published

Packages

No packages published

Languages