Save-Point
KLevelUpHeal VX + ACE - 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 VX/VXAce (RGSS2/3) Engines (https://www.save-point.org/forum-117.html)
+---- Thread: KLevelUpHeal VX + ACE (/thread-9900.html)



KLevelUpHeal VX + ACE - kyonides - 10-04-2024

KLevelUpHeal VX + ACE

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 VX
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 }

Regarding VX ACE

It allows you to leave note tags to get your Actors restore their HP or MP or both of them or clear their states or handle all of that in a blink of an eye.

Note Tags for VX ACE
Code:
<lvlup hp>
<lvlup mp>
<lvlup hp mp>
<lvlup states>
<lvlup all>

For VX ACE
You can also combine options like this: <lvlup hp states>

For All Editions
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

Both the note tags and 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!