https://github.com/djsutherland/tokenization
https://github.com/djsutherland/tokenization
dungeons-and-dragons maptool pathfinder rpg-tool
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/djsutherland/tokenization
- Owner: djsutherland
- Created: 2017-02-11T15:20:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T17:33:21.000Z (about 8 years ago)
- Last Synced: 2025-01-18T00:52:04.873Z (4 months ago)
- Topics: dungeons-and-dragons, maptool, pathfinder, rpg-tool
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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 requestsr = 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')
```