04-29-2010, 12:58 AM
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
Rare Candy + Anti Rare Candy Version
Author's Notes
Yeah, I know this is an extremely simple 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.
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!
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
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
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!
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