Re: developing a singular verses plural grammar system in your game

2020-07-25 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game OK, I've updated my library. There's examples on the repo, and I've put type hinting and all that good stuff in.Here's a basic example taken from the repo:"""Provides a basic example of how the libr

Re: developing a singular verses plural grammar system in your game

2020-07-25 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game Hi,I have spent some time tackling this in both Python and Dart.I wrote it a while ago, and I've used both packages in my own projects.Looking at the Python version, it's code is fairly outdated, and massively under

Re: developing a singular verses plural grammar system in your game

2020-07-24 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game Fair enough. URL: https://forum.audiogames.net/post/555270/#p555270 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo

Re: developing a singular verses plural grammar system in your game

2020-07-24 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game @7I think the better question is whether or not 20 or 30 lines to wrap a template rendering library is worth the gains, not whether or not the solution needs to scale.  It's also simpler than trying to concatenate strings

Re: developing a singular verses plural grammar system in your game

2020-07-24 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game Yes, but how versatile a system do we generally need? If we're writing a text adventure or a MUD, that's different from occasional, predictable messages and sentence structures. Basically, when is the most generalizable

Re: developing a singular verses plural grammar system in your game

2020-07-24 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game @5For 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

Re: developing a singular verses plural grammar system in your game

2020-07-24 Thread AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game My approach has been to give the character class a method for getting pronouns / copula / have/has. I tend to construct messages directly, rather than use a template, so this tends to look like msg = them.name

Re: developing a singular verses plural grammar system in your game

2020-07-23 Thread AudioGames . net Forum — Developers room : visualstudio via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game beside post 3 I'd like to point out that you can use format() of string functionanother thing is to use string library and use templates there (checkout it's documentation in python's standard library). URL: https

Re: developing a singular verses plural grammar system in your game

2020-07-23 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game You can do this with something like jinja2 or any of the simpler templated languages, which offer a way to embed variables, etc, into strings.But in practice, how most of the mud codebases I've looked at solve

Re: developing a singular verses plural grammar system in your game

2020-07-23 Thread AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
Re: developing a singular verses plural grammar system in your game I'm a bit confused. Your title talks about a plural system, which can just be solved with a function, but from your post,  I think you're talking about pronouns? URL: https://forum.audiogames.net/post/555079/#p555079

developing a singular verses plural grammar system in your game

2020-07-23 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
developing a singular verses plural grammar system in your game Hi. My game does not have online support yet, but I would still like to make a clean system for if or when that time does come. When the user is given a message, it will either say:you have found this, or, they/character name

developing a singular verses plural grammar system in your game

2020-07-23 Thread AudioGames . net Forum — Developers room : Zarvox via Audiogames-reflector
developing a singular verses plural grammar system in your game Hi. My game does not have online support yet, but I would still like to make a clean system for if or when that time does come. When the user is given a message, it will either say:you have found this, or, they/character name