Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Shop Selling Interest/Shop Discount, Make shops to buy only stuff they want or need! And add discounts
SojaBird
post Apr 11 2009, 05:26 AM
Post #1


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Shop Selling Interest/Shop Discount

Version v2.0
Author SojaBird
Release Date
v1.0 > 11-07-'09
v2.0 (+Shop Discount) > 01-05-'09


Introduction
With this script, you can set the interest of shopkeepers for sertain items wich are marked with their interest-text in the notefield.
With this script you can also set a discount for a shop.


Features
- Set wich shop can buy what items using simple tags. (v1.0)
- Set a sell rate (discount) for each shop if you like with a simple line (v2.0)


To come features
- Only on request.


Script
Attached File  Shop_Sell_Interest_Shop_Discount.txt ( 7.21K ) Number of downloads: 233



Customization
All the customazation is explained in the script self.
It's easy to use.
Read the comments to know how to customise the script.


Compatibility
VX only.


Screenshot

This weapon-interested shop only buys weapons.


DEMO v2.0



Installation
Put the script above main.
Read how to set the shop sell interest in the script.
Credit me pls.


FAQ
[Show/Hide] Q: How to set the sell interest for a shop?
A:
The use is pretty simple. When you make a shop-event, and you want to set the interest of that sales(wo)man, you'll only have to add a comment with it's interest-tag. Now he/she will only buy goods that wich have this tag in their notefield. (Any tag will do, as long as they stay the same.)
~!Notice that you can set multiple interest-tags in the comment!~

[Show/Hide] Q: How to set a discount for a shop?
A:
The use is pretty simple. When you make a shop-event, and you want to set the discount of that sales(wo)man, you'll only have to add a comment with "discount" and the sell-rate. Now he/she will sell and buy goods with the new sell-rate. ~!Notice that the sell-rate is 100%-based!~


Terms and Conditions
Credit me with site, and the script is free for use in NONCOMERCIAL projects.
If anyone want some changes, please pm me or post it here, I'll track the topic.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
SojaBird
post Apr 28 2009, 01:59 PM
Post #2


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Anyone interested in addable discount?


Greatzz,
SojaBird.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- pim321   Shop Selling Interest/Shop Discount   Apr 11 2009, 05:26 AM
- - charbelramy   very nice! thanks   Apr 11 2009, 05:54 AM
- - Musiciané   Thanks!!! So much i really needed this...   Apr 11 2009, 05:44 PM
- - Znikomek   Nice Job! but how can I set tag in note when I...   Apr 11 2009, 10:19 PM
- - pim321   Uhm...well I think that's something I've t...   Apr 12 2009, 12:18 AM
- - Trek   What exactly do I add into the note field for the ...   Apr 13 2009, 07:02 AM
- - pim321   Perhaps you want to check the demo. Anyway, what y...   Apr 13 2009, 01:55 PM
- - xeyla   QUOTE (pim321 @ Apr 28 2009, 05:59 PM) An...   Apr 30 2009, 04:19 PM
- - pim321   Well then I'll be making that for you Shouldn...   May 1 2009, 03:09 AM
- - charbelramy   I am thank you very much   May 1 2009, 07:53 AM
- - error_on_page   This sounds very awesome. Will you translate it XP...   May 1 2009, 08:47 AM
- - pim321   Nope I won't be transfering it to xp, I just c...   May 1 2009, 10:28 AM
- - pim321   Sorry for dubble posting but I've updated the ...   May 1 2009, 11:26 PM
- - Pharoah   would it be possible to set a shop to desire a spe...   May 2 2009, 10:09 AM
- - pim321   Heya, I did though about the first thing yes, it...   May 2 2009, 10:58 AM
- - xeyla   Thanks for this great script (and the update).   May 4 2009, 07:36 AM
- - pim321   You're welcome. I hope to please everyone arou...   May 4 2009, 01:40 PM
- - fruroar   hey sojabird the download demo is broken(winzip sa...   Jul 12 2009, 02:43 PM
- - pim321   That's odd. It's working fine here. Try a...   Jul 12 2009, 02:53 PM
|- - fruroar   QUOTE (pim321 @ Jul 12 2009, 06:53 PM) Th...   Jul 14 2009, 05:13 AM
- - pim321   Strages... Well what you have to do, is run the f...   Jul 14 2009, 06:46 AM
- - Jacklo   The only problem I see is that items sell for full...   Aug 23 2009, 10:01 AM
- - pim321   So the problem is solved? Or do you still have pro...   Aug 23 2009, 12:40 PM
- - doogle423   This isn't working I've looked at the demo...   Aug 31 2009, 07:25 AM
- - SojaBird   Doogle, Pls read the rules of posting in topics f...   Aug 31 2009, 08:59 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 05:09 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker