|
Post by mbeefy on Apr 22, 2024 22:45:05 GMT
Howdy,
I've been working on a set for some weeks now, and have been able to create and use new keywords very well, looking at the base magic keywords to understand formatting functions and their syntax. I've hit a extremely minor cosmetic snag, and can't seem to find a time a function is used or if it even exists.
I have a keyword Werecreature that is formatted Were<name> -- <effect>. Not there is no space between "Were" and the first parameter, which is a creature type, akin to mountainwalk, landcycling, etc. This way it would come out as "Werewolf", or "werebear" and look very nice on the card. (And yes, I know were-creatures and their subtypes exist extensively in MTG already, but I find flip cards and the night cycle clunky design and wanted to redesign the idea.)
The problem is, when I want to use that creature type parameter in the reminder text, its lowercase! Since creatures types are always capitalized in rules text it looks pretty strange. It's a very minor problem and I can go without fixing it. I tried using to_upper(), seeing to_lower() being used repeatedly in core keywords, but that makes its fully uppercase.
Is there a reminder text formatting function for capitalizing a parameter? Furthermore, is there a place to see documentation on these functions? I assume not after some searching.
Thanks
|
|
SirnightNano
1/1 Squirrel
Posts: 92
Favorite Card: Thopter Spy Network
Color Alignment: White, Blue, Red
|
Post by SirnightNano on Apr 23, 2024 12:01:29 GMT
I believe to_title() is the function that you'd want, converting your type to title case.
My understanding of the dev documentation is that this is the latest and most accurate documentation, but I also might be wrong. Anyone more well-versed in the documentation is free to correct me on this.
|
|