Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Changing to upper/lower/sentence/title case

A topic by Garry Francis created Feb 19, 2020 Views: 84 Replies: 2
Viewing posts 1 to 2
Submitted

I'm sure I saw something somewhere about being able to change a string to upper case or lower case, but I can't find it in the tutorial or in the editor using Ctrl+Space. Can you reveal how to do this?

More specifically, I want to convert a word to sentence case. (For those that don't know, that's where the first letter of the string is capitalised and the remainder is lower case. This is very handy where you want to capitalise the first word of a sentence.) I am trying to do something like this:

: match "hit -" {
   : print {(sentence(original_verb()) + " what?")}
}

"hit" has synonyms in the vocabulary table.

I can see that title case would also be useful in some circumstances. That's where the first letter of each word is capitalised.

Are these features available?

Host
: match "hit -" {
   : print {(camel(original_verb()) + " what?")}
}
Submitted

Perfect. Thank you so much.