Author Topic: [XP] J::BUY/SELL price modifier via variables!  (Read 4375 times)

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
[XP] J::BUY/SELL price modifier via variables!
« on: May 28, 2010, 07:23:31 AM »
J::BUY/SELL via variables!
Authors: Jragyn
Version: 1.0
Type: Shop Pricing Add-on
Key Term: Custom Shop System

Introduction

This is almost not a script in the sense its just a mini J::MODULE and some variable fun.
It allows for the maker to create a sorta-sense of 'dynamic' pricing in-game.

Features

  • Once you choose the 2 variables, its all in-game modification!
  • Separate BUY and SELL variables, allowing for a more full control of the pricing.
  • Did I mention? There is no script calling. Its just good ol' variable fun!
  • ...etc.

Screenshots

(click to show/hide)
This probably means more than any in-game screenshot does.

Demo

If a demo is reeeeeally necessary, I will make one.
Otherwise, its pretty much plug'n'play.

Script

This does best underneath Scene_Shop, but above Main.
(click to show/hide)

Instructions

The instructions are pretty self explanatory.
Pick the variables, and edit them as necessary to manipulate pricing.

Compatibility

The pieces that have been re-written or aliased are listed in the script.
I can't imagine it being incompatible with too many things, short of maybe a custom shop menu.
It was put together in interest of being functional with Falcon's Tax Script.
So hurray!

Oh, and its built to function in the default Scene_Shop, so if you change or mess with that,
this script may lose its functionality. Just tell me though and I can edit your Scene_Shop, if ya like.

Credits and Thanks

  • Wahaha, me! Jragyn! or J, that works too. Its shorter and provides less questions.
  • Yanfly(wong). He crafted a system like this for RMVX. So now I create one that works for XP!

Author's Notes
  • I accept constructive criticism.

If there is a better way to script something like this, then do say so!
I like help/advice.
Also, if it doesn't work, please state for what reason and why where how etc. lol.

Please keep in mind, this ultimately isn't really a script, its literally like, an editting of like, 10 lines.
But hey, it works just the same, right?
« Last Edit: February 18, 2013, 08:57:52 PM by KK20 »
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Shining Riku

  • Ethereal Devastator
  • ****
  • Posts: 266
  • LV: 7
  • Gender: Male
    • View Profile
Re: [XP] J::BUY/SELL via variables!
« Reply #1 on: May 28, 2010, 06:46:11 PM »
I'm so using this!  :D

Keep up the awesome work alright?

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: [XP] J::BUY/SELL via variables!
« Reply #2 on: May 28, 2010, 07:09:47 PM »
Nice script, J ^_^ Though, the way I'd have done it is like this:

Code: [Select]

module RPG
  class Item
   
    def price
      if $game_variables
        return @price * $game_variables[J::FACTOR] / 100
      end
      return @price
    end

  end
end

That would remove the need to change all those methods in shop scenes and what not to increase compatibility with CMSes.
Oh, wait! That wouldn't allow for different rates for buying and selling, so I'd have dumped it again, lol!

Anyway, *levels up*

PS: Maybe it's just me, but it took me a while to figure out what this script does. You should probably name it "J::BUY/SELL Percentagevia variables!" or something :)
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Shining Riku

  • Ethereal Devastator
  • ****
  • Posts: 266
  • LV: 7
  • Gender: Male
    • View Profile
Re: [XP] J::BUY/SELL via variables!
« Reply #3 on: May 28, 2010, 08:54:52 PM »
I'm gonna use this script to put merchants in my game that rip people off cuz they're mean.

And i'll be nice and hide some guys that buy stuff back for full price lol

Offline CountVlad

  • Trained Member
  • *
  • Posts: 35
  • LV: 0
    • View Profile
Re: [XP] J::BUY/SELL via variables!
« Reply #4 on: May 28, 2010, 10:56:49 PM »
Awesome script! Thanks! :D

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] J::BUY/SELL price modifier via variables!
« Reply #5 on: May 29, 2010, 06:04:57 AM »
@Fantasist: Hah, I originally did make it like that, modifying price via RPG::EQUIP, but I needed to modify selling prices as well, so I just dove right into the main heart of Scene_shop to make it werrrrrrrk. :D

@Shining Riku: That was one of the original reasons I crafted this script, was for ****bag merchants jerkin' the player around. Genius minds think alike ^.^


So umm, dearest moderators, I've seen other people have their names change throughout time, can I have a name-change to? I like 'J' just fine.


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