I have been spending a lot of time recently modifying the _bot_chat.gsc file in the z_svr_bots archive, mostly to adjust the chat to my own specifications. One minor hiccup that I have yet to figure out how to attempt is the issue of bot names and player names and their capitalisation.
Ideally, I would like a way to force the bots to ignore the case of certain bot names and write them all in lowercase, as I feel this would be a slight increase in realism (which I so dearly enjoy). In addition, to the same end, I also want the bots to truncate the bot names in certain specified cases, as I feel that some usernames I have put into the bots.txt directory look rather odd when spelled out fully by the bots. While I am aware of the colour modification for bots' names and chat messages, I am unaware of any modification to the message which manipulates the characters in this way. I have given illustration to both of these ideas below, using a sample chat message from my chat.gsc file:
self BotDoChat( 10, "well that was fun following " + player.name + " ROFL" );
Current instance of how the message would look given a player name with capitalisations, such as JeZa fOOLsgOld:
"well that was fun following JeZa fOOlsgOld ROFL"
How I would like it to look with a forced lowercase for the player.name variable:
"well that was fun following jeza foolsgold ROFL"
The above case with forced lowercase, but also with truncation of the last four characters:
"well that was fun following jeza fools ROFL"
With the .gsc files, is there any reasonable way of attaining this, such as some variable for the player.name variable or similar, or an additional string I could add to a given chat message? Or am I pushing the bounds of modification for files of this type further than is possible? My apologies for the naivete in this matter, as I have very little proper coding experience and need guidance on modification of this type.
Thanks in advance for any help offered!
I have been spending a lot of time recently modifying the _bot_chat.gsc file in the z_svr_bots archive, mostly to adjust the chat to my own specifications. One minor hiccup that I have yet to figure out how to attempt is the issue of bot names and player names and their capitalisation.
Ideally, I would like a way to force the bots to ignore the case of certain bot names and write them all in lowercase, as I feel this would be a slight increase in realism (which I so dearly enjoy). In addition, to the same end, I also want the bots to truncate the bot names in certain specified cases, as I feel that some usernames I have put into the bots.txt directory look rather odd when spelled out fully by the bots. While I am aware of the colour modification for bots' names and chat messages, I am unaware of any modification to the message which manipulates the characters in this way. I have given illustration to both of these ideas below, using a sample chat message from my chat.gsc file:
self BotDoChat( 10, "well that was fun following " + player.name + " ROFL" );
Current instance of how the message would look given a player name with capitalisations, such as JeZa fOOLsgOld:
"well that was fun following JeZa fOOlsgOld ROFL"
How I would like it to look with a forced lowercase for the player.name variable:
"well that was fun following jeza foolsgold ROFL"
The above case with forced lowercase, but also with truncation of the last four characters:
"well that was fun following jeza fools ROFL"
With the .gsc files, is there any reasonable way of attaining this, such as some variable for the player.name variable or similar, or an additional string I could add to a given chat message? Or am I pushing the bounds of modification for files of this type further than is possible? My apologies for the naivete in this matter, as I have very little proper coding experience and need guidance on modification of this type.
Thanks in advance for any help offered!