Joining two strings in ruby.

How do I tie 2 strings together in this script?


Script in question: https://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-shop-options/

Strings in questions:

String A: draw_text(dx, dy, contents.width, line_height, actor.name)


String B: \I[10] to actor.name


String Cheese: Delicious?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
First thing first, I see you want to use message codes in the text. 


The 'draw_text' method won't convert those, only the 'draw_text_ex' method will do.


Simply joining two strings means to add them together, which can be done with a simple + sign.


text = string1 + string2
draw_text(x,y,w,h,text,align)
# *or*
draw_text_ex(x,y,text)


Just like the above example shows.


So, you add them up before you draw them.


If this is not what you mean, you will have to add more information.


Like:


Where exactly you want to do this?


Why do you need this?


You could also explain those examples you wrote.

Original thread: https://forums.rpgmakerweb.com/threads/joining-two-strings-in-ruby.56657/