entropia / tip-toi-reveng

Trying to understand the file format of Tip Toi
http://tttool.entropia.de/
MIT License
644 stars 121 forks source link

Use code name in genrated pdf (feature request) #281

Open flothoni opened 1 year ago

flothoni commented 1 year ago

I try to simulate a card game with tttools. I want to use a table name instead of code number in generated pdf when I use oid-table.

I saw that their is somthing near for replay/stop code in xxx.codes.yml, but can we set more code in this file or xxx.yaml ? It is not clear for me.

Thanks

(great tool by the way)

nomeata commented 1 year ago

You can simply always use names instead of numbers in the scripts: table, and then these names will show up in oid-table. See https://tttool.readthedocs.io/de/latest/yaml-referenz.html#code-namen if you can read German, or maybe https://bitbucket.org/nomeata/tiptoi-taschenrechner/src/master/taschenrechner.yaml is enlightening.