Page 1 of 1

Setting 1st char in Name to Lower Case

Posted: Thu Mar 13, 2008 10:33 pm
by Boruk
Hello there,

I have noticed that when interacting with other characters whose name you do not know that the a/an +adjective+race String is capitolized.

Example:
A skinny human looks at A fat dwarf.
(should be)
A skinny human looks at a fat dwarf.

And I was wondering if this could be modified using a simple loop on the long name (not sure if that is the term used here) checking the characters for isalpha() (should be anyway) and then setting the first letter (in the example, the "A" in "A fat dwarf") using tolower().

I think it could make things a bit more immersive, as I find little things like this somewhat jarring.

Not a pressing issue, I understand, but I think it would be nice.

Edit:
While thinking about this I think it may be easier (there I go, thinking again...) to make all the (long) names start with lowercase, and then just have the first letter of the sentence that starts with them capitolized.

Posted: Fri Mar 14, 2008 1:05 pm
by Selveem
Just to nitpick, I would suggest races names capitalized:

a short, bald female Human

a holier-than-thou male Aasimar

Posted: Fri Mar 14, 2008 1:21 pm
by Horace
they aren't nationalities, they're species...it'd be like capitalizing anytime you say dog. in the case of dnd and the term "race", it is a misnomer

...not that I believe capitalization ruling should be a resource siphon in the game

Posted: Fri Mar 14, 2008 5:49 pm
by Lathlain
The capital 'A' and 'An' actually stems from the mobile long description syntax in the area file they're drawn from - this is certainly true for NPCs, and I assume the same is true for player characters.

Altering capitalisation from its source is a huge undertaking that would strike knee-knocking fear into even the heart of Selveem, as it would effectively involve changing every mob in every area so far - and although I can't speak with certainty as to how the code is handled here, I suspect it's either impossible or incredibly fiddly to achieve what you're proposing by adding a function to the interaction process.

I agree that the capitilisation can sometimes be a little jarring, but I just wanted to explain why it was unlikely that this suggestion will be implemented :wink:

Posted: Fri Mar 14, 2008 6:13 pm
by Selveem
I'm scurred. =(

Posted: Fri Mar 14, 2008 9:28 pm
by Boruk
Lathlain wrote: and although I can't speak with certainty as to how the code is handled here, I suspect it's either impossible or incredibly fiddly to achieve what you're proposing by adding a function to the interaction process.
It would actually be about 6-10 lines of C code added to the code of the engine. Likely take less then 10 minutes to write and add it.

I understand that it is not a pressing issue, but it was a game suggestion that I thought could improve the game for myself and others.

Posted: Fri Mar 14, 2008 9:35 pm
by Lathlain
I stand corrected in that case! Serves me right for dabbling in something I don't fully understand.

Posted: Sat Mar 15, 2008 2:09 am
by Leohand
Lathlain wrote:I stand corrected in that case! Serves me right for dabbling in something I don't fully understand.

Now, if only it were that easy to handle Lathlain in character, lol, just teasing. I don't know how the code works, but I have dabbled in visual basic and C++ and it did seem like it could be a daunting task. I was thinging along the same lines you were. Sometimes it's good to be corrected though. It's a good way to learn, if you are willing to listen.