I NEED HELP WITH SCRIPT AND TEXTS!

HELLO!
I am makin' a game with pictures only, and you can write your name in the game, so, I would like to know if I can make the name appear in the screen, without a bubble text, somethin' like this:
1683119575714.png

The player name in the picture is obviously made with Paint.net, I'm lookin' for help to know if I can actually do it in the game! XD
Hello and welcome to the forum. Considering what you mentioned, I will provide a solution that uses only images and allows you to customize player names with them.

Step 1: Store the actual player name in a variable.
You can do this by using an actual character name and storing it in a variable using the appropriate event command (Control Variable, then Scirpt, then $game_actors[actor_id_here].name). Just remember to replace "actor_id_here" with the actual actor ID.

Step 2: Split the name in multiple variables.
Define a batch of variables (e.g. from 1 to 30) and use them to store your actor name characters. You can do it using a simple script call:
Ruby:
$game_actors[actor_id_herre].name.chars.each_with_index do |c, i|
  $game_variables[starting_id_of_the_batch + i] = c
end

Step 3: Store the total name length in a variable to avoid unnecessary iterations later.
Of course, you don't want to iterate the whole batch of variables in case the name is shorter than expected. For this reason, store the actual length in a separate variable using the event command (Control Varlable, ,then Script, then $game_actors[actor_id_here].name.length).

Step 4: Store the starting position for your images in two different variables (one for x, the other for Y).
For this step you need to define a starting position for the name to appear in the HUD. Coordinates for such position must be stored in a variable so that you can use them later.

Step 5: Copy starting coodinates in two separate variables.
This step might seem unnecessary, but it is not, especially if you want to be able to redraw your characters later on. If you do it this way, you can keep the starting position in the original variables and use the new one to place subsequent characters in the name.

Step 6: Select a variable to use as a counter and set it to 0.
Variables are always initialized to 0 in VXAce, but doing this step explicitly ensures that they are exactly zero when you need them.

Step 7: Define the width for each character image.
This is what actually allows you to place all the images in the correct place. To do so, you need to define the width for each character (in pixels) and store it somewhere. Personally, I recommend using a map and store it in a variable using a Script Call command.
Ruby:
$game_variables[variable_id_where_you_store_your_map] = {
  'A' => width_of_character_A,
  'B' => width_of_character_B,
  ...
  'Z' => width_of_character_Z,
  'a' => width_of_character_a,
  ...
  'z' => width_of_character_z
}
You need to replace each "width_of_character_?" with the appropriate character width in pixels basaed on the image you are using.

Step 8: Create a loop to display images.
First of all start a loop. For each iteration of the loop, you have to perform the following steps:
  1. Get the character that needs to be displayed from the batch of variables used to store the character name. The correct id is the one obtained by adding the counter variable value to the starting id of the batch.
  2. Decide which image to show using a conditional branch to compare the character obtained in the previous step with all those you can display.
  3. In the conditional branch, first display the image at the right position, then increase the copied starting point coordinates.
    1. Display the appropriate image (image id depends on the value of your counter variable) using the copied coordinates as starting points.
    2. Increase the horizontal coordinate by an amount of pixels equal to $game_variables[variable_id_where_you_store_your_map][$game_variable[starting_batch_id + $game_variables[counter_variable_id]]]
  4. Increase the counter variable by 1.
  5. Check whether the counter variable value is equal to the full name length using a conditional branch.
    1. If it is, then break the loop.
Done, your name should be now visible using just images.
Thanks a lot!!! I will try it when I can!! If I find any issue I'll just ask it here. ^^
Step 2: Split the name in multiple variables.
Define a batch of variables (e.g. from 1 to 30) and use them to store your actor name characters. You can do it using a simple script call:
I have a little question, sorry if it's a bit absurd: The 1 to 30 is to define maximun letters in the name or are 30 variatons of names? My game needs only 2 names, and I ask so I use the necessary amount of variables. ^^

I have another question. When you say "Character" you mean a player or a letter? (Sorry, I am non-native and some things are a bit hard for me.)

Umm wait, (sorry for so many questions) how many images will I use for this?
Character can mean both things depending on its usage or its context.
If you're talking about a "string", it's a letter.
If you were discussing something about moving a character on the map, it usually is the player or an event (NPC).

Honestly, trying to show a character's name on screen using so many variables is kind of... absurd usuallly.

Do you need to create / configure a custom change name menu?
Or do you just need to display the lead character's name on screen and nothing else?
Do you just need to display the lead character's name on screen and nothing else?
Exactly that, nailed it! ^^
Omg sorry, maybe I didn't specify very well in the post.
Are you just using the normal font provided by default by VX Ace?
Or are you using a large alphanumeric sprite with all the characters instead?
Are you just using the normal font provided by default by VX Ace?
Or are you using a large alphanumeric sprite with all the characters instead?
I am usin' RPGMaker font, but I changed the font script so it's another type of font.
Can you tell me more about that?
Can you tell me more about that?
Idk if this is an important thing for this but... I watched a YT tutorial to change the font of my RPG Maker Game so it's the Eras Bold ITC font.
But I don't think this has anythin' to do with make the Actor's name appear in the screen. xD
Is it easy to put the name in the screen?
Is it easy to put the name in the screen?
As long as you have the font for it and you are willing to use a small script, yes, it is fairly easy.

Definitely much easier than going for just images.
The reason why I kept asking you to provide us with more information was that you phrased it in such a weird way that it could give the impression that you were using a custom font script. Now it seems like the "script" only handles a change of font name, which is a very straightforward process indeed.

Well, do you want to use a game window with borders or a sprite?
The sprite does not look like a game window at all, just for you to know.
Definitely much easier than going for just images.
Yeeeh... I think I specified wrong. I meant that I don't use characters nor tilesets, it's everythin' picture. even the pause menu. I specified it's a pictures game so no one could think that my request is about a Bubble-text. xD
I specified wrong. But yeah, I do use some bubble texts. I also asked so I could remove the bubble texts but no no, better not to remove them.
Well, do you want to use a game window with borders or a sprite?
The sprite does not look like a game window at all, just for you to know.
Idk, I just wanna know how to put messages or the actor name in the screen like if it was a picture. XD
I don't wanna use a picture for the name, but I wanna write the Actor name in the screen and I have no idea how. Because is a name you choose, I can't use a simple picture with an specific name, I gotta use the name of the actor but show it in the Character Stats (HP SP MP) I made, without bubble texts. (I hope I am clear this time! Sorry. xD)
I'll wait for the answer! ^^
As long as you have the font for it and you are willing to use a small script, yes, it is fairly easy.

Definitely much easier than going for just images.
Hey, so... To be sure, is there an event script to make appear the name in the screen?
And... Another script to remove it. xD
[MESSAGE REMOVED]
Sorry I don't wanna send this message but I can't remove it and don't know what to say uh... Have a nice day.
Hey, so... To be sure, is there an event script to make appear the name in the screen?
And... Another script to remove it. xD
Strictly speaking, there is an event command you can use to display and remove it, which is the Script Call command. However, it means that you have to write some code in it on your own.

I already wrote a tutorial explaining how to create pop-up windows with text in them. Originally, it was meant for doors, but you can still use it for the character name, you just need to adapt the trigger logic to fit your needs.

At the moment I cannot provide a link, but the search function shall easily give you a hint to that.

Once you create a pop-up window and put some text in it, you can even think of having the window background and border completely transparent to better adjust its style to whatt you are doing. That is also possible.
OK! THANKS A LOT!! ^^
I'm gonna do it like this! I'm sure it will work!!

I will try my best to make it work how I want. I will not ask that. So the thread is over! Thank you, Heirukichi! ^^
Also thanks, kyonides! ❤ You guys are such a kind!

Original thread: https://forums.rpgmakerweb.com/threads/i-need-help-with-script-and-texts.157182/