Rare Candy Scriptlet
#1
Rare Candy Scriptlet
by Kyonides-Arkanthos

Features

Here you can find 2 versions of the same scriptlet that will allow you to use an item to level up or down your hero at will.

Instructions

Go to the items database and create 1 or 2 new items (just in case you want to add the Anti Rare Candy one, too). Make sure their scopes are equal to One Ally. The rest if up to you. Later copy either one of the scriptlets and testplay your game.

Scriptlets

Rare Candy Only Version

Code:
module MoreEffects
  RARE_CANDY_ID = 33
end

class Game_Battler
  alias kyon_rare_candy_game_battler_item_effect item_effect
  def item_effect(item)
    if item.id == MoreEffects::RARE_CANDY_ID && item.scope == 3 &&
      self.level < 99 && self.hp > 0
      self.level += 1
      return true
    end
    kyon_rare_candy_game_battler_item_effect(item)
  end
end

Rare Candy + Anti Rare Candy Version

Code:
module Effects
  # Rare Candy and Anti-Rare Candy
  CANDIES = [33, 34]
end

class Game_Battler
  alias kyon_anti_rare_candy_game_battler_item_effect item_effect
  def item_effect(item)
    if Effects::CANDIES.include?(item.id) && item.scope == 3 && self.hp > 0
      self.level += 1 if item.id == Effects::CANDIES[0] && self.level < 99
      self.level -= 1 if item.id == Effects::CANDIES[1] && self.level > 1
      return true
    end
    kyon_anti_rare_candy_game_battler_item_effect(item)
  end
end

Author's Notes

Yeah, I know this is an extremely simple scriptlet.
"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 }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Character Transitions (More eye-candy !) Rataime 2 8,892 07-08-2009, 12:32 PM
Last Post: vietanh2108



Users browsing this thread: 1 Guest(s)