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 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
