Ravenclaw105 2 Report post Posted October 1, 2009 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
Kiriashi 117 Report post Posted October 1, 2009 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
Ravenclaw105 2 Report post Posted October 1, 2009 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
Kiriashi 117 Report post Posted October 2, 2009 Don't think me yet man. :rolleyes: Variables are really simple! Share this post Link to post Share on other sites
Ravenclaw105 2 Report post Posted October 2, 2009 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
Kiriashi 117 Report post Posted October 3, 2009 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
Polraudio 122 Report post Posted October 3, 2009 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
Ravenclaw105 2 Report post Posted October 3, 2009 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
Nisage 31 Report post Posted October 3, 2009 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
Ravenclaw105 2 Report post Posted October 3, 2009 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
Kiriashi 117 Report post Posted October 10, 2009 http://www.rmxpunlimited.net/forums/index.php?app=downloads&showfile=226 Bam! :P Try it out! 2 Ravenclaw105 and miguel1 reacted to this Share this post Link to post Share on other sites
Derek 3 Report post Posted October 10, 2009 Good find Kiriashi. Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted October 10, 2009 Good MAKE! :B): Share this post Link to post Share on other sites
Derek 3 Report post Posted October 10, 2009 Right, right. But I can't credit you for that ;) Share this post Link to post Share on other sites
Ravenclaw105 2 Report post Posted October 10, 2009 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
Derek 3 Report post Posted October 10, 2009 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
miguel1 17 Report post Posted October 10, 2009 http://www.rmxpunlimited.net/forums/index.php?app=downloads&showfile=226 Bam! :P Try it out! Nice finding Kiriashi ;) +1 rep. Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted October 10, 2009 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
miguel1 17 Report post Posted October 10, 2009 :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
Derek 3 Report post Posted October 10, 2009 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
miguel1 17 Report post Posted October 10, 2009 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
Kiriashi 117 Report post Posted October 11, 2009 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
Derek 3 Report post Posted October 11, 2009 You still keeping it evented?? Share this post Link to post Share on other sites
Ravenclaw105 2 Report post Posted October 11, 2009 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
Kiriashi 117 Report post Posted October 11, 2009 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
Derek 3 Report post Posted October 12, 2009 That's the way to go!! Share this post Link to post Share on other sites
Kiriashi 117 Report post Posted October 12, 2009 :) This event is pretty long.. Share this post Link to post Share on other sites