Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 KBattlePause XP
#1
KBattlePause XP

by Kyonides Arkanthes


Introduction

I've been fiddling with a new scriptlet. This one would let you fight some monsters as usual.
Boring Yeah, I know it sounds boring indeed.
But I can guarantee you there's a catch! Happy with a sweat 
What is it? Confused  Err, well, the whole thing is that even if you flee like real chicken wussies...

Your enemies Ghost Skull Zombie Snake might still face you again.
Yes, the very same foes with the same stats as they had when you left them biting the dust! Shocked
Unless you take too long to fight them letting them get fully healed. Incredible

I seriously suspect this kind of script would work best if used in boss and sub boss battles. Thinking

My script only has a single script call but you might know that using it is completely optional.

Besides I have not define a way to activate this new feature after N turns. Laughing + Tongue sticking out

The Script

Code:
# * KBattlePause XP
#   Scripter : Kyonides Arkanthes
#   2020-08-17 - v0.8.0

# Are you planning to make your heroes running away? You better think it twice!
# This script might not deter them from chickening out but it surely does keep
# them trapped. How is that possible!?

# Well, next time you could notice that your next normal or random encounter
# might lead you to facing the very same foes you fought against a while ago!

# Keep in mind that clock is ticking so you better face it before your foes get
# a chance to be fully healed automatically.

# This is not really a plug and play script, you do need to setup the KBPause
# module first to let it run smoothly.

# * Optional Script Call * #

# KBPause.boss_heal_timer = Time in Minutes

module KBPause
  SWITCH = 1
  TROOP_ID_VARIABLE = 1
  ENEMIES_VARIABLE = 2
  TURNS_VARIABLE = 3 # Not Implemented Yet
  @boss_heal_timer = 1 # In minutes
  def self.boss_heal_timer() @boss_heal_timer end
  def self.boss_heal_timer=(time) @boss_heal_timer = time end
end

class Game_Troop
  alias :kyon_btl_pause_gm_troop_setup :setup
  def setup(troop_id)
    enemies_var = $game_variables[KBPause::ENEMIES_VARIABLE]
    $game_variables[KBPause::ENEMIES_VARIABLE] = 0
    if $game_switches[KBPause::SWITCH]
      if @battle_pause_timer == 0
        $game_switches[KBPause::SWITCH] = false
        troop_id = $game_variables[KBPause::TROOP_ID_VARIABLE]
        $game_variables[KBPause::TROOP_ID_VARIABLE] = 0
      elsif enemies_var.is_a?(Array)#and enemies_var[0].is_a?(Game_Enemy)
        @enemies = enemies_var
        $game_variables[KBPause::TROOP_ID_VARIABLE] = 0
        $game_switches[KBPause::SWITCH] = false
        return $game_temp.battle_troop_id = nil
      end
    end
    kyon_btl_pause_gm_troop_setup(troop_id)
  end
end

class Game_System
  alias :kyon_btl_pause_gm_sys_init :initialize
  alias :kyon_btl_pause_gm_sys_up :update
  def initialize
    kyon_btl_pause_gm_sys_init
    @battle_pause_timer = 0
  end

  def update
    kyon_btl_pause_gm_sys_up
    return if @battle_pause_timer == 0
    @battle_pause_timer -= 1
  end

  def reset_battle_pause_timer
    @battle_pause_timer = Graphics.frame_rate * KBPause.boss_heal_timer * 60
    @battle_pause_timer = @battle_pause_timer.abs
  end
end

class Scene_Battle
  alias :kyon_btl_pause_scn_btl_blt_end :battle_end
  def battle_end(result)
    if $game_switches[KBPause::SWITCH] and result == 1
      $game_variables[KBPause::TROOP_ID_VARIABLE] = $game_temp.battle_troop_id
      $game_variables[KBPause::ENEMIES_VARIABLE] = $game_troop.enemies
      $game_system.reset_battle_pause_timer
    end
    kyon_btl_pause_scn_btl_blt_end(result)
  end
end

Terms & Conditions & Oddities

Free for use in any game.
Include me in your game credits.
Mention this forum as well.
Send me a free copy of your finished game if you include 2 or more of my scripts in your project.
"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: