Page 1 of 2

Catskart Shop System

Posted: 11 Feb 2017, 17:56
by Catskart
Catskart Shop System

Image


With TeaScript I made a shop system for the ItemBox where you can set the articles and the prices in the two last scripts, follow the instructions.
You can customize the background, the windows and the seller's messages. :)

You can download here : http://www.mediafire.com/file/lfht1zydt6r97xf/Catskart Shop System.zip

Posted: 11 Feb 2017, 19:16
by Eri7
Awesome! Very good! 10/10! :clapping: :clapping: :clapping:

Posted: 11 Feb 2017, 22:12
by Jackson455
DANG MAN, THIS LOOKS VERY AMAZING :D :clapping: :clapping:

Posted: 12 Feb 2017, 3:50
by MarioKirby101
This looks amazing, would it be possible to transfer purchased items to the World Map inventory?

Posted: 12 Feb 2017, 5:38
by PK Esper
People really liked your Teascript, dude. Including me :3 . Ayy, I think I'm gonna give a try by providing a video.

phpBB [youtube]

Original link: https://www.youtube.com/watch?v=8kNtDh2Ucb4


Posted: 12 Feb 2017, 16:30
by Alvespires
Amazing!You did a great job on this one!This remembers me of other nintendo RPG games...

Posted: 12 Feb 2017, 16:34
by NightyThomas456
This shop system is amazing! It's useful for my projects ! :clapping: :clapping: :clapping:

Posted: 20 Feb 2017, 22:08
by MidoriNeko
This script is amazing! :clapping: I've been wondering if there a way to make it, so that you can spend the starcoins, instead of the regular coins? :whistle:

Posted: 25 Feb 2017, 2:11
by Coolio__
This is a very nice script, but on SMBX-38A 1.4.4, buying certain items cause Run-time error '9'. :cry:

Posted: 25 Feb 2017, 15:29
by Catskart
DaveDaCat101 wrote:This is a very nice script, but on SMBX-38A 1.4.4, buying certain items cause Run-time error '9'. :cry:

With the patch 1 this problem is resolved.

Posted: 4 Apr 2017, 19:49
by TheGreatMarioPerson
Wow catskart this is amazing. This is awesome, cant wait to use it in my project

Posted: 13 Apr 2017, 9:43
by TheGreatMarioPerson
Also, is there a way to sell STAR COINS except NORMAL COINS? :yes:
Because i feel in my.episode star coins are useless to collect so i want a system where u can sells starcoins

Posted: 14 Apr 2017, 1:49
by MidoriNeko
I have it with star coins :blush:

Posted: 14 Apr 2017, 3:43
by Eri7
And i have it with dragon(yoshi) coins!

Posted: 14 Apr 2017, 12:52
by TheGreatMarioPerson
greencat wrote:I have it with star coins :blush:
Do you know how to spend star coins?

Posted: 14 Apr 2017, 13:13
by MidoriNeko
UnderFan24 wrote:
greencat wrote:I have it with star coins :blush:
Do you know how to spend star coins?
Yes, catskart helped me to make it with star coins. I can send it to you if you want.

Posted: 14 Apr 2017, 15:56
by TheGreatMarioPerson
yes please. :yes:

Posted: 14 Apr 2017, 17:46
by MidoriNeko
Ok, I will explain how to use it:
1. Create a global variable in the world map (example: "starcoin");
2. Go to a level and make every star coin to trigger this script when you collect them (Death):

Code: Select all

gval(starcoin)=gval(starcoin)+1.

3. Go to the shop and change the script named "Value" with this:

Code: Select all

------------------------------------------CUSTOM SHOP SYSTEM--------------------------------
'By Catskart
'-------------------------------------------------------------------------------------------------------------
'Script : Value.
'This script will set all necesary values and bitmap for the functionment.

'Disable all jumps
sysval(Disablejump)=1
sysval(Disablespinjump)=1

'Set the item in the itembox, we need to use the HUDSET for that.
call HUDSet("initialize", 0, 0, 0, 0, 0, 0, 0, 0, 0)
call HUDSet("bitmap", 1,0,0,1,1,96,280,5001,-1)

'Set the Life and coin value to set the money (1 life=100 coins)
val(Money)=gval(starcoin)
'Goto money will be show, it makes the transition from a number to another one.
val(GotoMoney)=val(Money)

'Set the cursor, his coordonate will be by 32 pixels
call BmpCreate(1, 1, 1, 1, 0, 0, 32, 32, val(cursorX)*16, -7+val(cursorY)*16, 1, 1, 0,0, 0, -1)


do
'Imobilize the player.
char(1).x=char(2).x
char(1).facing=0

'GotoMoney transition
if val(GotoMoney) > val(Money) then
val(GotoMoney)=val(GotoMoney)-1
call tcreate([SOUND]Coin,0)
elseif val(GotoMoney) < val(Money) then
val(GotoMoney)=val(GotoMoney)+1
call tcreate([SOUND]Coin,0)
end if
'Cursor coordonate
Bitmap(1).destx=val(cursorX)*32
Bitmap(1).desty=-7+val(cursorY)*32
'Set the sysval the new value for lives and coins if the player click on "Quit".
if val(Menu)=-1 then
gval(starcoin)=val(Money)
end if
call sleep(1)
loop

Note that you have to change the prices of the items, because you don't wanna pay 10 star coins for a single mushroom do you? :biggrin:
I may be missing something, so tell me if it worked. Hope it helped! :)

Posted: 15 Apr 2017, 16:47
by TheGreatMarioPerson
wow thx! ;-)
(srry for the late reply)

Added after 25 minutes 9 seconds:
it dindt work....

Added after 8 days 22 hours:
This script doesnt work, i tried on level and it didnt work.

Posted: 24 Apr 2017, 17:53
by Alvespires
BlueAsriel24 wrote:wow thx! ;-)
(srry for the late reply)


it dindt work....


This script doesnt work, i tried on world map and it didnt work.
The script is on level not in world map.Just the variable is on world map.