Floating message with value from variable

Hi I know that when I put in evet script 

Code:
"message = "Hello"$game_map.show_text($game_player,message)
 

I will get shown a message "Hello" near my player. But is there a way of changing it's color ? or even puting a variable amount in this ?
Im trying to put message with number from variable but I got problem... Im nooob in Ruby... just begging.. anyone know how I should write it ?
if using those lines, you should be able to use all text codes that are available in the show text event command (haven't tested, but should be obvious).


So open the event command and hower the mouse over the input window to read those codes, then include them in your message string.


EDIT: Typo
I think I wrote wrong ... I just want to show "jumping text" with number taken from variable. I will attach the file.

gamevariables.jpg

variable.png
I think I wrote wrong ... I just want to show "jumping text" with number taken from variable. I will attach the file.
Yes, you made it wrong - you need to use the text codes from the event command "show text", not the ruby variable code itself.
The text codes have nothing to do with ruby code - that's why I said you have to check the hint overlay given by the show text command in the event editor - for example, the text code \N[1] will display the name of the first actor, but that code is NOT a ruby code.


Just go to the editor, open an event window, double click on the content and select the "show text" command (the first command in the entire list) and then hover over the text input window to see the full list of text codes and select the codes you need for your work.
Ok, I did as You wrote...but there is problem, I need this message to show jumping after char pick up gold from floor. I don;t need a message because it will pause the game and so on. 

When I opened the "show text" option there was a code "\V[n]" which shows the number of the stored variable but... when I put this code to

my script message call:

 message = "$\V[551]"$game_map.show_text($game_player,message)ormessage = "\V[551]"

$game_map.show_text($game_player,message)

it's doesnt show me the number of variable but a message : \V[551] ...
any sugestion  ?

variable2.jpg

textcommand.jpg
then you probably need one of the advanced messaging system scripts to enable that display.


There are several of those on the master script list (Yanfly's and Modern Algebra's and perhaps others), so you have to check which one is compatible to your other scripts.
Thank You Andar for all Your help and time 🙂 . I will check their scripts

Original thread: https://forums.rpgmakerweb.com/threads/floating-message-with-value-from-variable.21954/