KDirtyShop XP
#1
KDirtyShop XP

by Kyonides

Introduction

This script allows you to alter the normal behavior of the shop scene.
Now you can trigger a Common Event that makes the shopkeeper ask for some extra money before allowing you to purchase or sell any item there.

Times are very difficult, and storekeepers got to do whatever is necessary to feed their poor families, you know!

IMPORTANT NOTES

The script depends on Common Events for a very good reason, namely the ability to customize it without depending too much on custom script calls.

The GUI has not changed at all, but 2 default methods have been overwritten for the sake of convenience.

This script does not alter normal shops!
If you ever forget to set the Common Event for a specific shop, it will work as an ordinary shop.

BASIC INSTRUCTIONS

  1. You will need 2 Game Switches and 4 Game Variables to make this happen.
    Thus, you have to setup the 6 CONSTANTS found in the KDirtyShop module below.
    All of them have self explanatory names so you won't ever get confused.
  2. Next pick a Common Event for Every Shady Shopkeeper.
  3. Check out the Official Demo to learn how to configure that Common Event.
  4. To ensure the Common Event will process the purchase or sale, use this call:

Code:
KDirtyShop.process!

The Constants

Code:
module KDirtyShop
  # - Switches - #
  BUY_OR_SELL_SWITCH = 10
  NO_EXPLANATION_SWITCH = 11
  # - Variables - #
  COMMON_EVENT_VAR = 9
  BUY_BASE_PERCENT_VAR = 10
  BUY_EXTRA_PERCENT_VAR = 11
  SELL_BASE_PERCENT_VAR = 12
  SELL_EXTRA_PERCENT_VAR = 13


Terms & Conditions

Free for Non Commercial Games Only!
If you want to go commercial, please contact me first.
It is quite inexpensive indeed.
Due credit is mandatory.
Mention the forum where you found this script.
That's it! Tongue sticking out
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#2
The Script Has Been Ported!

Now both RMXP and RMVX can also enjoy the super shady benefits of letting a despicable shopkeeper ask for some extra money Cash before letting you purchase your darn items. Thinking Well, you gotta know that things won't get any better if you ever try to sell your stuff there. Not saying the storekeeper is an actual thief Thief at all!
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }
#3
Script Update

Now version 1.1.0 features the exclusion of items or weapons or armors from the extortion mechanism already implemented in my script.

New Script Calls for All RGSS-Based Engines

Code:
KDirtyShop.skip_items(ID1, etc.)
KDirtyShop.skip_weapons(ID1, etc.)
KDirtyShop.skip_armors(ID1, etc.)
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }




Users browsing this thread: 1 Guest(s)