Hello, i have spent the last two days racking my brain to make this work in any way.
I wanted to make a custom shop, and i was really inspired by the shop in the game tomodachi life. So i ended up making this layout to test out the mechanics it would have, and so far i managed to build almost the entire thing with just pictures, events and scripts.
^ This is what the shop in tomodachi life looks like.
^ and this is my poor recreation.
The problem is this: In case you are unfamiliar with tomodachi life, one of the elements of its shop is that the stock rotates and changes every day, and i thought, since my game has a calendar system, it wouldn't be too bad to implement something like that too.
What i came up with as solution was this: There is a variable for each item tab, so i randomized each of this variables, and display the name of the item with the text-to-picture plugin. (I know the label is in the wrong place now but earlier it was not there. I messed it up later, and since i stopped using it i did not bother to fix.)
^ this is the common event i used to roll which number to each
^ and this is the code to display the name of the items
When it came to me making the purchase screen, i realized i would also need to make an event for each option of each item tab variable, which would make usage of 25 if-s in total. Which is already not great, but considering i planned to add more items and only had 5 for the sake of testing out, makes it a complete disaster.
Some ideas i've tried:
- making a variable tag for all items and have each number for them (ex.: IdItem = 1 would mean flour, IdItem = 2 would mean eggs etc.)
- using shop plugins by PKD and DM
- using common events to list out all the items tag, and then have each item tab move that tag to their position
None of which have properly worked, all break something in some way.
I come here then as last resort, i have run out of solutions, and ideas to make this work. I know new developers can have tendency of biting more than they can chew, so to anyone wiser than me: is this just something unreasonable considering my limitations? I do not know how to code at all, i have been brute-forcing my way with events and searching here for others with similar problem, but i couldnt find anyone with this mixture of mine.
Even if it is impossible, any sort of suggestion or idea in anyway is appreciated, its not that the stock being actually randomized is a MUST, its more so that i cant figure out a way to make the visual representation of stock translate into an item in your slot in an efficient way.
I apologize ahead if there is a simpler way to do this that i didn't think of, or if this sounds convoluted, sometimes it just evades me.
I wanted to make a custom shop, and i was really inspired by the shop in the game tomodachi life. So i ended up making this layout to test out the mechanics it would have, and so far i managed to build almost the entire thing with just pictures, events and scripts.
The problem is this: In case you are unfamiliar with tomodachi life, one of the elements of its shop is that the stock rotates and changes every day, and i thought, since my game has a calendar system, it wouldn't be too bad to implement something like that too.
What i came up with as solution was this: There is a variable for each item tab, so i randomized each of this variables, and display the name of the item with the text-to-picture plugin. (I know the label is in the wrong place now but earlier it was not there. I messed it up later, and since i stopped using it i did not bother to fix.)
When it came to me making the purchase screen, i realized i would also need to make an event for each option of each item tab variable, which would make usage of 25 if-s in total. Which is already not great, but considering i planned to add more items and only had 5 for the sake of testing out, makes it a complete disaster.
Some ideas i've tried:
- making a variable tag for all items and have each number for them (ex.: IdItem = 1 would mean flour, IdItem = 2 would mean eggs etc.)
- using shop plugins by PKD and DM
- using common events to list out all the items tag, and then have each item tab move that tag to their position
None of which have properly worked, all break something in some way.
I come here then as last resort, i have run out of solutions, and ideas to make this work. I know new developers can have tendency of biting more than they can chew, so to anyone wiser than me: is this just something unreasonable considering my limitations? I do not know how to code at all, i have been brute-forcing my way with events and searching here for others with similar problem, but i couldnt find anyone with this mixture of mine.
Even if it is impossible, any sort of suggestion or idea in anyway is appreciated, its not that the stock being actually randomized is a MUST, its more so that i cant figure out a way to make the visual representation of stock translate into an item in your slot in an efficient way.
I apologize ahead if there is a simpler way to do this that i didn't think of, or if this sounds convoluted, sometimes it just evades me.