Save-Point
KLevelUpHeal XP - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: KLevelUpHeal XP (/thread-8765.html)



KLevelUpHeal XP - kyonides - 06-21-2023

KLevelUpHeal XP

by Kyonides

Introduction

This is the most basic script that one could ever publish, but here I am publishing it here. :tongueout:

Yes, this script lets you customize the way your heroes will level up.
There is always a DEFAULT option to rely upon in case you do not set a custom type of heal for your heroes.

For XP
Code:
# 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 }

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

HP or MP or States or ALL

The default options are case insensitive.


Terms & Conditions

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