
I understand that Sublime Text is popular with ToME developers - not least of which is DarkGod himself! In my opinion, it's a beautiful text editor and everyone should use it. But we haven't even begun to take advantage of its great customization abilities by creating ToME-specific tools. Let's make it the best editor ever for creating ToME content!
This is only a small initial release, to gather ideas and inspiration. We'll call it an alpha! I'm going to add more to this library as I go along coding normally, as it's quick for me to do so - and now I feel I know all about regexes (after a night of furious doc-reading and bugfixing) I'm ready to apply them to a great many situations!
https://github.com/Nagyhal/ToME-snippets
Here's an example of what you can do:
getTalentRange
input: range <- press tab here
output: self:getTalentRange(t)
input: target <- with text selected, open the "getTalentRange" snippet using the Command Palette.
output: target:getTalentRange(t)
getTalentValue
input: tget <- press tab here
output: local value = t.getValue(self, t) <-enter parameter name in camel case (e.g "Dam", "Dur") and it will be converted into a local variable name in lowercase and underscores.
input: getInitialDam <- with text selected, open the "getTalentRange" snippet using the Command Palette.
output: local initial_dam = t.getInitialDam(self, t)
Anybody is free to create snippets! You can either paste them here for me to upload or upload them to the repository yourself.
I'd also like to know what suggestions people have as to new snippets, and how they think the ones currently uploaded could be improved.
Other snippets I'll complete shortly will include:
- Talent templates, for various types of talent
- Effect templates
- NPC templates
- Damage type templates
- etc.
- Grid-finding routines
- Basic attack / damage routines
- Generating as well as referencing talent values