KRiskPoints XP

kyonides

Veteran
Veteran
Joined
Nov 17, 2019
Messages
131
Reaction score
29
First Language
English
Primarily Uses
RMXP
KRiskPoints XP


by Kyonides Arkanthes



Introduction

This is a quite simple scriptlet that lets you create a state that randomly changes your hero's life or mana points every turn till it wears off.

Nope, Aluxes, it won't revive you if a ghost or a lizard has killed you already! :aswt:


Script

Code:
# * KRiskPoints XP - Default Battle System Version

#   Scripter : Kyonides Arkanthes
#   2020-07-31

# This scriptlet will let you create a state with the ability to set an actor's
# Life or Mana Points randomly every turn he or she is afflicted by that.
# I think this is a great addition for bosses and mini bosses.

# Add a state to the States DB and come back here to set the STATE_ID constant
# to the chosen state ID. By the way, you may prefer to create a Skill that
# inflicts this state to the hero.
# A hero might even get afflicted by both kinds of states.
# This state will not revive its target. My sympaties, Aluxes! XD

module KRiskPoints
  LIFE_STATE_ID = 20
  MANA_STATE_ID = 21
end

class Scene_Battle
  alias :kyon_hprisk_ups1 :update_phase4_step1
  def update_phase4_step1
    if @active_battler and @active_battler.hp > 0
      if @active_battler.state?(KRiskPoints::LIFE_STATE_ID)
        @active_battler.hp = rand(@active_battler.maxhp + 1)
      end
      if @active_battler.state?(KRiskPoints::MANA_STATE_ID)
        @active_battler.sp = rand(@active_battler.maxsp + 1)
      end
    end
    kyon_hprisk_ups1
  end
end

Terms & Conditions

Free for use in any non commercial games.
Don't forget to include my nickname in your game credits!
Include the forum's URL as well.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Besides my Might and Magic inspired project, I have always wanted to make a Fire Emblem-like game. Time is the culprit... Between life, composing music packs, and working on a game can it be done!? The tactical plugins for MV work quite well based on what I have tested.
Yaaay! My second public script is out and approved! A VX Ace Final Fantasy IX styled Throw Script!

I look forward to all the constructive feedback I get but most importantly I hope everyone who ends up using it enjoys!

Yaaaay! Making scripts is fun lol. :D
When you're lost out therrrrre and you're alllll alone, ahwahwah waitin, to carry you hooooommmme, uhhheverywhere you look! (someone hit me with those backing vocals)
X.X cant focus... too many thing want do... help!
Day 2 of teaching MV, student can move cat across the map.

Forum statistics

Threads
100,525
Messages
976,813
Members
132,080
Latest member
nwr
Top