Pooky

LadyDusk
Member
Joined
Sep 9, 2019
Messages
10
Reaction score
5
First Language
german
Primarily Uses
RMMV
Hello everyone, it's me again!
I'm back with another question.

So in my game you are able to name your character.
I want a character to call out for the player in one event, so to create that effect, I want to capitalize the player's name.
However, MV doesn't really give the option to capitalize that, so I wanted to ask if someone knew a way to do so for that one message. After that message, I'd want the name to return back to the state the player wrote it.
I have found the same question being asked for Vx Ace already and tried my luck to use the script call I found there, but to no avail...

I hope someone knows what to do and can help me! Thank you very much!
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
870
First Language
English
Primarily Uses
RMMV
@Pooky VX Ace and MV scriptlets cannot be used in the other due to the difference in programming languages. But, the basic idea is the same. Put the following in a Script Command in the event before the message :

Code:
var charName = $gameActors.actor(charId).name().toUpperCase();
$gameVariables.setValue(varId, charName );

Change 'charId' to the numerical id of the character you want to use. Also change 'varId' to the numerical id of the variable you want to store the uppercase name to. So, it will end up looking something like this :

Code:
var charName = $gameActors.actor(1).name().toUpperCase();
$gameVariables.setValue(15, charName );

Then you can use \V[varId] to output that name within the message.
 

Pooky

LadyDusk
Member
Joined
Sep 9, 2019
Messages
10
Reaction score
5
First Language
german
Primarily Uses
RMMV
Thank you very much, both of you! It works like a charm! :stickytongue:
 

Latest Threads

Latest Posts

Latest Profile Posts

Remember when people had the ability to have meaningful conversations on platforms like twitter or facebook? Good times... Nowadays is absolute crap.
All aboard the Advent calendar train, riding Avery's coattails as an excuse to make more sprites. ;)
Advent2021-01.gif

Get 'em in my thread in General Resources.
I had a dream where it was Friday, and what happened in the dream was irrelevant, because I woke up and it's not Friday, so I'm sad.
edit: third time's the charm? some graphic text I whipped up that I like for the mid-game intertitle, now with all of the actual letters in the stupid damn words I was trying to spell :uswt2:
kcsmall.png

Forum statistics

Threads
117,096
Messages
1,104,543
Members
153,107
Latest member
yogarenew
Top