RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Text Operators in Map Screen Names - RPG Maker VX Ace

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 75
Hello.
Hi there and thanks for viewing my post.

I was wondering if anyone would know a possible method to have text operators work on map names (i.e the ones that appear at the top-left of the screen as you enter). In particular, I'm interested in having /N working for EnterNameHere's House or something so that would display on the screen.

Many thanks!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Well, there are actually a couple ways in which we can accomodate you, but I recommend my own Global Text Codes script. It will allow you to use any message codes anywhere as long as you also put a \* somewhere in the message. In other words, once you insert the script into the Script Editor, all you need to do is place the following into the Display Message slot of a map:

\*\n[1]'s House

That will allow you to any message code you want in the map name window or any other window, for that matter.

P.S. I notice that you put /N[i] as your example. Please note that it is actually supposed to be a \, not a /.

**
Rep: +0/-0Level 75
Hello.
Thank you very much, I really appreciate your help and that was very easy to apply! It works absolutely fine and that script seems to do a lot more than just what I needed there!

Thanks for the slash comment, yeah I always make that mistake, I suppose it's because we use / more often than \ with the keyboard, heh...

I have one other quick question, is there any way using your Global Test Codes script that I can allow longer map titles to appear onscreen? Like 25 characters or so? Thanks!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Yes and no. You can use a replacement code to avoid the space limitations of the program, by creating an entry in the MAGTC_RCODES hash. Ie. go to this part of the script:

Code: [Select]
MAGTC_RCODES = { # <- Do not touch
  0 => "\\i[112]\\c[14]New Game\\c[0]", # Example
  1 => "", # You can make as many of these as you want
  2 => "\\i[40]Blood Hound",
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#  END Editable Region
#//////////////////////////////////////////////////////////////////////////////
}

Add in the following line below the line that starts with 2 => (you can actually delete these lines if you want as they are just samples):

Code: [Select]
  3 => "The Forest Outside \\n[4]'s House",

Then, in the actual display name field, you would write:

\*\r[3]

However, the actual window its being drawn in is only 240 pixels wide, so any name that exceeds that will be cut off. To fix that, you would need to increase the size of the window by inserting the following code into its own slot in the Script Editor above Main and below Materials:

Code: [Select]
class Window_MapName
  def window_width
    return 400
  end
end

You can replace the 400 with any number between 25 and your resolution size (you could use Graphics.width if you wanted to be the width of the entire screen), but keep in mind that since the window is the same for all map names and the name is centre-aligned, it might look a little silly for smaller names.
« Last Edit: August 27, 2012, 01:09:12 AM by modern algebra »

**
Rep: +0/-0Level 75
Hello.
You are a total genius, thank you very much and thanks for your prompt replies!   :D

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
You're welcome. I'm happy I could help.