Author Topic: [XP] Improved Shop  (Read 6981 times)

Offline gerrtunk

  • Awakened Visionist
  • **
  • Posts: 83
  • LV: 4
    • View Profile
[XP] Improved Shop
« on: November 07, 2010, 04:12:09 PM »
Improved shop
Authors: gerrtunk
Version: 2
Type: Misc System
Key Term: Custom Shop System

Introduction
 This script add a lost feature from old rpgmakers: the option to select if you
wanted to buy, sell or both.
 
Also adds the option of modifing the price based in %. Buy and sell discount are
separated, so you can make any combination.

In 2.0, you can define any currency to use for shop(exp, gold, variable...) and
add items that if you cant add to your inventory and that modifiy a switch,
variable or call a common event.

Using this feature you can create easily any set of shops that tells skills or sells
specialized things, or whatever you need, with autocalled common events and
custom currencys, and some extra features.


Features
 
Classic feature: the option to select if you wanted to buy, sell or both.
Prices modifications for selling and buying

Shops interfaces: You can make any number of different shops interface and
a default one, and then changue all values for they:
  -Gold type by total exp, gold or variable.
  -Gold name.
  -Customizte the used commands buy, sell, exit and his names.
  -Option to not show numbers or select item number
  -Option to exit when a buy is done
  -Windowskin
  -Title/Introduction
  
Special things: These items are special exceptions, where you can define
some unique behaviors:
  -Actor & class buy restrictions
  -Active switch, modifiy variable or call common evenet when buyed
  -Switch that define if can buy or not a thing and other for things that when
    adquired cant be used more.


Screenshots



Demo
http://www.megaupload.com/?d=DW5CMJ16

Script

(click to show/hide)

Instructions
In the script.

Compatibility
Any other shop script.

Credits and Thanks
No.

Author's Notes

I will add more things when i need them in my projects(or i have time), so it will be updated. Again, feedback, bugs,retc, i will listen.
« Last Edit: February 18, 2013, 08:52:28 PM by KK20 »

Offline gerrtunk

  • Awakened Visionist
  • **
  • Posts: 83
  • LV: 4
    • View Profile
Re: Improved Shop
« Reply #1 on: July 11, 2011, 06:38:40 PM »
At last it dont give me any error, and i can post the template.

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: Improved Shop
« Reply #2 on: July 12, 2011, 06:41:34 AM »
Nice job. ;)

* Moves to database *
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Improved Shop
« Reply #3 on: July 14, 2011, 01:48:50 AM »
Lol, I wrote a script that does this same functionality, but is compatible with both XP/VX.
I just havent been able to upload it cuz I been away. Darn. XD


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Improved Shop
« Reply #4 on: July 27, 2011, 04:10:22 PM »
request :

could you make an option to use gold or value of a variable as the price?
also, all your script didnt appear on the database

http://chaos-project.com/index.php?option=com_scriptdatabase&view=scriptdatabase&Itemid=29

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Improved Shop
« Reply #5 on: July 28, 2011, 01:13:18 AM »
Its because he erased the "Key Term".  I didn't even catch that when I moved it... :facepalm:

The template, especially the header and topic name, must be followed exactly, they are not guidelines.  The Script Index is automated to organize itself by these terms, and if you omit them, the script doesn't show up.

* Fixes post *
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline gerrtunk

  • Awakened Visionist
  • **
  • Posts: 83
  • LV: 4
    • View Profile
Re: [XP] Improved Shop
« Reply #6 on: July 31, 2011, 12:58:04 AM »
request :

could you make an option to use gold or value of a variable as the price?
also, all your script didnt appear on the database

http://chaos-project.com/index.php?option=com_scriptdatabase&view=scriptdatabase&Itemid=29

You mean the price, the discount or what?

A short way to do that is to call this script call:

v = $game_variables[1]
$game_temp.sell_discount = v

or whatever type, buy, etc. This way its settled the value of the var 1 to that
« Last Edit: July 31, 2011, 01:05:42 AM by gerrtunk »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 841
  • LV: 514
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Improved Shop
« Reply #7 on: July 31, 2011, 04:44:12 PM »
I meant player will use the value of variable as his gold

ex =

when buying a skill he needs AP, not gold
and the AP is stored in $game_variables[1]

sorry for my bad english

Offline gerrtunk

  • Awakened Visionist
  • **
  • Posts: 83
  • LV: 4
    • View Profile
Re: [XP] Improved Shop
« Reply #8 on: July 31, 2011, 07:52:15 PM »
I meant player will use the value of variable as his gold

ex =

when buying a skill he needs AP, not gold
and the AP is stored in $game_variables[1]

sorry for my bad english

I will add that option to the successor of this script, my Merchant script, thats more complex, but iwill akle time.

Offline gerrtunk

  • Awakened Visionist
  • **
  • Posts: 83
  • LV: 4
    • View Profile
Re: [XP] Improved Shop
« Reply #9 on: September 21, 2011, 12:01:28 PM »
Script updated to 2.0!

I meant player will use the value of variable as his gold

ex =

when buying a skill he needs AP, not gold
and the AP is stored in $game_variables[1]

sorry for my bad english

On now all my shop scripts will be called improved shop, and in the new version 2 you can do that.