Help with properly display message using script

Hi there, I wanted to make a cooking system for my game but stucked here...

I have near to 0 coding background, it took me about an hour or two to digest this Intermediate/Advanced game variables, that's just how bad I am with understanding this  ;_; . I wanna use Galv's multiple storage containers v1.4 as "kitchen" to put your ingredients in... 

What I intend to do is showing how many ingredients is inside the "kitchen" after the player close the menu.

I think I can do this in "show text" if I want to show a single item, but my plan is to let player choose like 5 items to put in, then let the game check and count those items, and display them together. 

From Galv's multiple storage, this code will count the item

c_count("type", id, event_id, map_id)To display the value, just use \V[n]

I am able to display the item correctly using \V[n] on "show text",

but I wanted more, I want to show how many of the items is inside the container,

i.e. "Total ingredients
       asparagus x10

       bak choi x10"

 So i used scripts, it returns "Can't convert Fixnum into String" instead, here's what I did

$game_variables[22] = ["Total ingredients", "asparagus", "bak choi"]if $game_variables[21] >= 1$game_message.add($game_variables[22][0] + " " +$game_variables[22][1] + "x" + $game_variables[21])elseend Everything went fine until i added $game_variables[21]

Questions is, how do I make the $game_variables[21] to display the number?

AND.. How to make the text to appear in different line? Because what I have now is
"Total ingredients asparagus", I want it to appear as

Total ingredients

asparagus x10

halp me senpais ;_;   ;_;   ;_;   ;_;   ;_;   ;_;   ;_;   ;_;   ;_;
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Put $game_variables[21].to_s - it's a number, so if you're going to "add" it to a text string, you need to convert it to string.

Do $game_message.add(text) for each line that you want to include.

Code:
$game_message.add("Total ingredients")$game_message.add($game_variables[22][1] + " " + $game_variables[21].to_s)
Thank you!!  🙂   🙂

and sorry for the wrong section. I'll try this as soon as I can get back home to continue my game! THX again!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-properly-display-message-using-script.43893/