Re: developing a singular verses plural grammar system in your game
@5
For BGT or something that's probably the best you can do, but Python makes my string templating example 20 or 30 lines of boilerplate, then you can put anything in the string in any order, it's named, and you get object properties. Also reading them from a file isn't an issue.
Pronouns in a class doesn't scale because English is too irregular. %-formatted strings doesn't scale because you have to format them at the call site, or always build messages of exactly the same form. I.e. you can't easily do paragraphs. Building the strings in code doesn't scale because you can't put them in your level files.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector