Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 KPointsLotto XP VX & ACE
#1
KPointsLotto XP VX & ACE

by Kyonides Arkanthes


Introduction

This is a short script that will let you configure two kinds of twin skills, an HP or an SP alias MP regeneration skill. What's new here? It will let you set the points percent your hero might earn or lose! That's pretty much why I say it's a good skill for bosses! Laughing 

Script
Vanilla XP Version
Code:
# * KPointsLotto XP
#   Scripter : Kyonides Arkanthes
#   2019-11-07

# This scriptlet will let you define skills that might heal or damage its
# target or recover or burn its mana depending on luck alone!
# It might be some good skills for boss battles...

module KPLotto
  LIFE_SKILL_ID = 3
  MANA_SKILL_ID = 4
  LIFE_RANGE = -40..25 # Percent you can lose or earn
  MANA_RANGE = -35..10 # Percent you can lose or earn
end

class Range
  def random() rand(4) % 2 == 0 ? -rand(self.first) : rand(self.last) end
end

class Game_Battler
  alias :kyon_plotto_gm_battler_se :skill_effect
  def skill_effect(user, skill)
    result = kyon_plotto_gm_battler_se(user, skill)
    if result
      if KPLotto::LIFE_SKILL_ID == skill.id
        @damage = @hp * KPLotto::LIFE_RANGE.random / 100
        self.hp += @damage
      elsif KPLotto::MANA_SKILL_ID == skill.id
        @damage = @sp * KPLotto::MANA_RANGE.random / 100
        self.sp += @damage
      end
    end
    result
  end
end

HiddenChest and mkxp Version (XP only)
Code:
# * KPointsLotto HiddenChest
#   Scripter : Kyonides Arkanthes
#   2019-10-25

# This scriptlet will let you define skills that might heal or damage its
# target or recover or burn its mana depending on luck alone!
# It might be some good skills for boss battles...

module KPLotto
  LIFE_SKILL_ID = 3
  MANA_SKILL_ID = 4
  LIFE_RANGE = -40..25 # Percent you can lose or earn
  MANA_RANGE = -35..10 # Percent you can lose or earn
end
# HiddenChest and mkxp
class Game_Battler
  alias :kyon_plotto_gm_battler_se :skill_effect
  def skill_effect(user, skill)
    result = kyon_plotto_gm_battler_se(user, skill)
    if result
      if KPLotto::LIFE_SKILL_ID == skill.id
        @damage = @hp * rand(KPLotto::LIFE_RANGE) / 100
        self.hp += @damage
      elsif KPLotto::MANA_SKILL_ID == skill.id
        @damage = @sp * rand(KPLotto::MANA_RANGE) / 100
        self.sp += @damage
      end
    end
    result
  end
end

VX Script
Code:
# * KPointsLotto VX
#   Scripter : Kyonides Arkanthes
#   2019-11-07

# This scriptlet will let you define skills that might heal or damage its
# target or recover or burn its mana depending on luck alone!
# It might be some good skills for boss battles...

module KPLotto
  LIFE_SKILL_ID = 3
  MANA_SKILL_ID = 4
  LIFE_RANGE = -40..25 # Percent you can lose or earn
  MANA_RANGE = -35..10 # Percent you can lose or earn
end

class Range
  def random() rand(4) % 2 == 0 ? -rand(self.first) : rand(self.last) end
end

class Game_Battler
  alias :kyon_plotto_gm_battler_modv :make_obj_damage_value
  def make_obj_damage_value(user, obj)
    if obj.is_a?(RPG::Skill)
      if KPLotto::LIFE_SKILL_ID == obj.id
        return @hp_damage = @hp * KPLotto::LIFE_RANGE.random / 100
      elsif KPLotto::MANA_SKILL_ID == obj.id
        return @mp_damage = @mp * KPLotto::MANA_RANGE.random / 100
      end
    end
    kyon_plotto_gm_battler_modv(user, obj)
  end
end

VX Ace Script
Code:
# * KPointsLotto ACE
#   Scripter : Kyonides Arkanthes
#   2019-11-07

# This scriptlet will let you define skills that might heal or damage its
# target or recover or burn its mana depending on luck alone!
# It might be some good skills for boss battles...

module KPLotto
  LIFE_SKILL_ID = 3
  MANA_SKILL_ID = 4
  LIFE_RANGE = -40..25 # Percent you can lose or earn
  MANA_RANGE = -35..10 # Percent you can lose or earn
end

class Range
  def random() rand(4) % 2 == 0 ? -rand(self.first) : rand(self.last) end
end

class Game_ActionResult
  alias :kyon_plotto_gm_ar_md :make_damage
  def make_damage(value, item)
    kyon_plotto_gm_ar_md(value, item)
    return unless item.is_a?(RPG::Skill)
    if KPLotto::LIFE_SKILL_ID == item.id
      @hp_damage = @battler.hp * KPLotto::LIFE_RANGE.random / 100
      return @battler.hp += @hp_damage
    elsif KPLotto::MANA_SKILL_ID == item.id
      @mp_damage = @battler.mp * KPLotto::MANA_RANGE.random / 100
      return @battler.mp += @mp_damage
    end
  end
end

Terms & Conditions

You must include my nickname and the current website's URL in your game credits.
I don't know if this scriptlet should be 100% free or not so stay tune! Shocked
Give me a free copy of your completed game if you include at least 2 of my scripts! Laughing + 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
Update!

I have updated the script in order to let the player get a specific percent of HP or SP if you use any of its skills.
"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
Just Another Update!

I have posted a modified version of KPointsLotto XP and published its ports to VX and VX Ace as well!! Shocked

Honestly, I'd appreciate if somebody cares to test the new versions of my script. Happy with a sweat

EDIT

I had to fix some minor bugs I had found in XP, VX and VX Ace versions of my lil script... Laughing
"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: