An open API service indexing awesome lists of open source software.

https://github.com/djsutherland/tokenization


https://github.com/djsutherland/tokenization

dungeons-and-dragons maptool pathfinder rpg-tool

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

Some Python utilities to make [MapTool](http://www.rptools.net/toolbox/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')
```