Temporarily Capitalizing a name?

I have talking computers right?

So I made them speak in all caps to make it seem Computerish, but how do I make them say the players name in capitals too? \n[1] gives it normally.

x_112.png
Try this script call.

aszi5rxr.png


After that just use \v[1] or whatever variable you chose in the textbox.

2mr5umfv.png
$game_variables[20] = $game_actors[1].name.capitalizeThis line should set the capitalized name of the Actor 1 on the variable 20,then just use \v[20] to show it on a message.

edit: Ninja'd

Alistair's script will change the whole word to capitals, mine will change only the first letter.

Somehow I misread and understood wrong a post with just two lines.
$game_variables[20] = $game_actors[1].name.capitalize
This will only capitalize the first letter of the name, though.

ut8pxhen.png


Edit: Okay you were aware of that 🙂

I thought you didn't know.
I managed to do this:


x_112.png



I didn't know it was .upcase.


Thanks all! 😉
Yep that works too. No need for the round brackets, though.
Yep that works too. No need for the brackets, though.
That's mainly my personal preference, I like it organized like that.

Original thread: https://forums.rpgmakerweb.com/threads/temporarily-capitalizing-a-name.42630/