KEquipSkills VX
KEquipSkills VXVersion 1.1.1
by Kyonides
Introduction
It's a scriptlet that allows you to equip skills aka temporarily learn a skill if a piece of equipment like a weapon or an accessory is currently equipped.
There was another scriptlet out there but it sucked
for it used an iterator when I noticed it gotta be simpler. And yes, I was right about that! Take a look for yourselves!
Ruby:
# v1.1.1 - 2023-06-12
# In order to add new skills whenever you equip a new Weapon or Armor,
# You need to configure a couple of CONSTANTS.
# ACTORS_INIT_BEHAVIOR.default = :direct
# The line of code above means that Any Actor not listed there,
# will be able to learn a single skill from the Weapon or Armor.
# - If ACTORS_INIT_BEHAVIOR for a given Actor is set to :direct
# DIRECT_WEAPONS = SkillID
# DIRECT_ARMORS = SkillID
# - If ACTORS_INIT_BEHAVIOR for a given Actor is set to :checks
# CHECK_WEAPONS = { :skill => ,
# :class => , :actor => }
# CHECK_ARMORS = { :skill => ,
# :class => , :actor => }
# 0 as an ID allows any class or actor to equip the skill!
# * Script Call * #
# - Change a given Actor's Equip Check Type
# Available Types: :direct or :checks
# game_actors.equip_check_type = Type
module KEquipSkills
ACTORS_INIT_BEHAVIOR = {}
ACTORS_INIT_BEHAVIOR.default = :direct
DIRECT_WEAPONS = {}
DIRECT_ARMORS = {}
CHECK_WEAPONS = {}
CHECK_ARMORS = {}
# * Beginning of Customization * #
DIRECT_ARMORS = 162
CHECK_ARMORS = { :skill => , :class => [], :actor => [] }
DOWNLOAD DEMO
Terms & Conditions
Free for use in any game.
Include my nickname in your game credits.
Mention this forum as well.
Don't adopt a stray cat.
That's it!
本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/kequipskills-vx.125200/
页:
[1]