[TeaScript] Erwill Shop System
Posted: Sun Jul 10, 2022 10:43 am
Erwill Shop System
Years ago, I created a shop system for SMBX 1.4.4. I might as well tell you this system has aged quite badly and looks stark today.I decided to rewrite this script from scratch and make a better one, let's see what changed.

Items id are NPCs id, it means you can set whatever you want in your shop, including improbable things.
II- More compatibility
Unlike the old one, the 2 players mode is compatible and it works with any character. (A restricted amount of items if available for Toad, Peach and Link however)
III- Easy customizable shop
The two first scripts are designed for the users, a few teascript knowledges are requiered, but I want to make it simple to change the settings.
The first script, "Settings", contains all of the shop settings:
npc files: show
texts: show
texts: show
If you choose global variables, don't forget to write the name in the two functions getmoney() and setmoney() at the bottom of the script and remove the character ' so the line isn't a comment anymore.
Itemslist is the array where all the item is in, redim(0, itemslist, SIZE) will set how many items the shop will have, replace SIZE by the amount of items. To specify the items id, array(itemslist(PLACE))=NPCID, replace PLACE by the place among those available and NPCID by the npc id.
The second script, "database", has three databases:
itemdataprice : The price of each npc
itemdataname : The name displayed in the shop of each npc
itemzoom : It's used for graphics displaying when the item icon is zoomed or not, useful for big items
Download link