KLevelUpHeal XP

KLevelUpHeal XP

by Kyonides
​

Introduction

This is the most basic script that one could ever publish, but here I am publishing it on the forum. 😛

The scriptlet will restore the actors' HP or MP or both of them or clear their states or handle all of that in a blink of an eye.

If you prefer to set the DEFAULT Constant to a default value, you would just need to enter a string containing any of these options:

HP or MP or States or ALL

Internally, the "strings" will be treated as texts in lowercase.

Ruby:
# Enter HP or SP or States or combine them at will.
# Enter ALL for all 3 options.

# * Script Calls * #
# - Set the Default Type In Game
# $game_system.lvlup_default = "" OR "SP" OR "HP States"

# - Step 1: Find an Actor - 2 Methods:
# actor = $game_actors[ActorID]
# actor = $game_party.actor(ActorID)

# - Step 2: Add a given Actor's Type in Game: :hp or :sp or :states or :all
# actor.add_lvlup_type(Type)

# - Or Remove a given Actor's Type in Game: :hp or :sp or :states or :all
# actor.remove_lvlup_type(Type)

module KLevelUpHeal
  DEFAULT = "HP"
  # { ActorID1 => :type, etc. }
  INIT_ACTOR_TYPE = { 1 => :states }


Terms & Conditions

Free for use in any game.
Credit is optional but appreciated.
You could send me a copy of your game as well! 😀
That's it!

Original thread: https://forums.rpgmakerweb.com/threads/klevelupheal-xp.158545/