The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Sasquatch927 on April 27, 2010, 09:22:45 AM

Title: Need help with CSS
Post by: Sasquatch927 on April 27, 2010, 09:22:45 AM
<Custom Shop System>
<4/27/2010>



Summary
Hello guys. I am very very new to being involved in these threads so if I do something wrong, I'm really sorry. Even though I haven't been apart of these forums, I've browsed all of the scripts on this site and others as well and seen many many great things you guys have created. of all scripts out there, I have to give my favorite one to the Blizz-ABS, and I'm also a big fan of many of blizzards other scripts as well.
But on to the request I suppose...



I've been searching the threads for awhile now looking for things that look interesting; that pop out to me and make me want to use in my game. I found a script today on this site if I'm correct and posted it into my game. It's called "Dynamic Shop System" by Tidloc. I used this system; got familiar with it and learned how to use it really well, however there is a couple glitches and one error in particular thats keeping me from really loving the script. The thread I got this script from had no errors from anybody and the last it was updated was in 2007 if I remember. I made this thread because I wanted help in solving these glitches; by creating an entirely new CSS, or modifying tidlocs DSS to fix the problems.



The script has these features

I don't have any pics, incredibly sorry
If you want to see the system itself, you should probably look at the thread that the script is in.

Games




Did you search?
Yes

Where did you search?

What did you search for?

I'm sorry if this is out of the templates format, but allow me to explain these errors...

Whenever there's a special item of the day, I will open the shop window, and buy the item. When I've confirmed my purchase, it gives me an error. I've noticed that it does this, whenever there aren't any more special items in the list anymore.

If there are multiple special items, if you chose to buy just one of them, it will take you to the regular items, and even though it shows the shop's quantities, you can buy the items over and over without the shop running out. I exit the special items menu and go to the regular items shop menu, and the items are gone, assuming that the glitch in the special items window made it do this. the only way for you to truly understand these errors I'm getting is if you Create a new project, use the Shop system and test it out for yourself. I can't explain it all that well. Here's what you do with the script...

Whenever you've configured everything (which doesn't take long at all) Create an event and use the regular shop command. here's how the layout in the event should look like...

Set Variable (the one specified in the script) = (the shop you specified in the script)
Call Script Command: Script:Scene_Shop.bonus
Shop Window: list idk about 3 things, really don't matter...

The script command picks a random number from 0 to 10000. If it is less than or equal to the number you specified for the special item probability, the special item will show up in stock.

To test out my errors, first, open the shop window repeadedly until there is a single item in the special items window. Buy the item. once the purchase is confirmed, it should give you the error it gave me...

line 166: nomethoderror occured
Undefined method `[]' for nil:NilClass

I have no idea what that means...

For the next error, open up the shop window over and over until there's at least two items in the special item window. Buy just one of them. You will see that the window is in the regular window and that you can buy unlimited amounts of the items. and when you exit, the items are gone from the regular stock.
AT least it don't give an error and shut down my game, but it's still a glitch.

I'm incredibly sorry if this topic is all over the place. I was really needing help and if someone could help me by fixing the script for me, or just pointing out little things in the script for me to change myself, it would be greatly appreciated. Thanks a bunch. I hope this thread wasn't too big of a burden to read...[/list]