じ☆ve冰风 发表于 前天 19:36

KLevelUpHeal VX

KLevelUpHeal VX

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


DOWNLOAD SCRIPT​

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!


本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/klevelupheal-vx.158544/
页: [1]
查看完整版本: KLevelUpHeal VX