Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Ravenclaw105

Shop Limited Supply Script [XP]

Recommended Posts

I was wondering if there exist a script for a shop so it have a limited supply of goods.

 

In my game there will be a shop where the player can buy upgrades, for example a Health Upgrade so the hero's health is raised with 100 HP for example.

But the shop should only contain a certain amount of the supplies, but it should still re-stock as time goes by so the player can buy more of these later.

 

So when an item is out of stock, it should turn inactive and say Out of Stock.

 

 

Are there any script out there for this or can this be easily done with events?

 

 

Thanks in advance =)

Share this post


Link to post
Share on other sites

One word man, variables.

 

 

You can do this, with a little effort if not easily, with some conditional branches and variables.

 

 

Think it out, and try it. You might be able to do it yourself. It might even be possible without variables. Imagine that!

 

Once your try, and if you fail, I will do my best to help.

Share this post


Link to post
Share on other sites

Alright, I've never really understood the variable stuff but I'll try and see what I can do, if it doesn't work I reply back here. Thanks a lot =)

Share this post


Link to post
Share on other sites

I've tried it out with variables but I just can't seem to figure it out, I really need to study and use variables more to learn them.

I would greatly appreciate your help Kiriashi, if you want to that is =)

 

Also, anyone know of any guide for variables I can read?

Share this post


Link to post
Share on other sites

I will try to do this later, as of right now, I don't have a compy with RMXP on it :(....

 

 

I will try to make a tutorial on this tomorrow though.

Share this post


Link to post
Share on other sites

You might be able to do this by editing the shop system but i have so much on my hands i wont be able to do it at the moment.

Share this post


Link to post
Share on other sites

Kiriashi: I really appreciates that, I will continue to study them myself in the meantime, maybe I can learn a thing or two. =)

 

 

Polraudio: Hmm, yeah it would possible. I got another friend who know a lot of coding, he's not really an expert with the Ruby language but since it's similar to the other languages he known he can still figure it out. He's currently working as a scripter and developer in a game making buisness (can't remember the name) in England.

I'm not certain but maybe just maybe he could help, but hopefully I can still work it out with variables or something =)

Thanks for the suggestion thought ^__^

Share this post


Link to post
Share on other sites

The only shop script I keep finding is one that removes either the Buy or Sell parts so you make a shop that only Buys and a shop that only Sells. Although I did find a topic on another site similar to what you ask, it hasn't been answered and it was made in 2007 :( I think I found it, I'm Pm'ing another person who asked for the same thing, I'm hoping they have a copy of the script since the links that were posted to the script are now dead :( Hope the person replies.

Share this post


Link to post
Share on other sites

Thanks a lot for your search, I'm amazed it's not been requested so much actually.

Let me know when you recieve an answer, thanks for your help so far =)

Share this post


Link to post
Share on other sites

Indeed good, it's awesome. Thanks a lot Kiriashi, this will help a lot =)

And I will surely give credits for ya. And I also give you reputation. ^__^

Share this post


Link to post
Share on other sites

I tried looking into doing this with variables, but I really don't think it's possible. Unless of course, you know a couple call script commands to insert. Then it might work, but I don't know enough about scripting period to know if the proper syntax is there for this kind of thing.

Share this post


Link to post
Share on other sites

Right, right.

But I can't credit you for that ;)

:mellow: What do you mean? I made the whole damn thing.

 

 

Don't tell me you are accusing me of stealing? And did you even try it out? Of course it's possible! I did it!!!

 

 

Thanks miguel. And I made it, I didn't find it.

Share this post


Link to post
Share on other sites

:mellow: What do you mean? I made the whole damn thing.

 

 

Don't tell me you are accusing me of stealing? And did you even try it out? Of course it's possible! I did it!!!

 

 

Thanks miguel. And I made it, I didn't find it.

 

 

Oh sorry, in that case, good job!

Share this post


Link to post
Share on other sites

I think he was referring to me about the accusations Miguel, Lol.

That was my mistake Kiriashi, Lol. I though you found that script. I didn't know you made it, Lol.

 

Good job buddy.

 

FYI:

I didn't mean to accuse though, I was simply stating that if you didn't make it, then I couldn't credit you for it.

Share this post


Link to post
Share on other sites

I think he was referring to me about the accusations Miguel, Lol.

That was my mistake Kiriashi, Lol. I though you found that script. I didn't know you made it, Lol.

 

Good job buddy.

 

FYI:

I didn't mean to accuse though, I was simply stating that if you didn't make it, then I couldn't credit you for it.

 

 

LOL, I know, but i too said nice finding, and then kiriashi told me he didn't find, he made it!

And that is why i said sorry LOL

Share this post


Link to post
Share on other sites

Hehe. I'm sorry to all ya'll. I overreact a lot...

 

 

I'm making one with prices now.

Share this post


Link to post
Share on other sites

Yet again I'm thankful for all your help Kiriashi =)

 

It's hard to set up a shop like this, since it don't really open up a shop window it makes it harder XD

But hopefully I can get this to work, it's really some neat eventing Kiriashi ^__^

Share this post


Link to post
Share on other sites

No problem dude. I'm currently making your priced shop one now.

 

 

You still keeping it evented??

 

Yup. It'd be hard to script with my RGSS skills. :(

 

There is a little scripting in my system but only called scripts by use of events.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...