08-12-2020, 08:38 AM
KEquipSkills
XP 1.3.1 + Add-On
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

Instructions for XP
Code:
# * KEquipSkills XP
# Scripter : Kyonides Arkanthes
# v1.2.1 - 2023-06-13
# - Use Items, Weapons or Armors to learn Skills! - #
# In order to add new skills whenever you equip a new Weapon or Armor or Item,
# You need to configure a couple of CONSTANTS.
# EQUIP_CHECKS_LEARNING lists Actors that will begin with the :checks method.
# ITEM_CHECKS_LEARNING lists Actors that will begin with the :checks method.
# The rest of the Actors will use the :direct method, learning a single skill
# from the Weapon or Armor or Item.
# - If any BEHAVIOR for a given Actor is set to :direct
# DIRECT_WEAPONS[WeaponID] = [SkillID1, etc.]
# DIRECT_ARMORS[ArmorID] = [SkillID1, etc.]
# DIRECT_ITEMS[ItemID] = [SkillID1, etc.]
# The default value is [], an empty Array.
# - If any BEHAVIOR for a given Actor is set to :checks
# CHECK_WEAPONS[WeaponID] = { :skill => [SkillID1, etc.],
# :class => [ClassID1, etc.], :actor => [ActorID1, etc.] }
# CHECK_ARMORS[ArmorID] = { :skill => [SkillID1, etc.],
# :class => [ClassID1, etc.], :actor => [ActorID1, etc.] }
# CHECK_ITEMS[ArmorID] = { :skill => [SkillID1, etc.],
# :class => [ClassID1, etc.], :actor => [ActorID1, etc.] }
# 0 as an ID allows any class or actor to equip the skill!
# * Script Calls * #
# - Change a given Actor's Item or Equip Check Type
# Available Types: :direct or :checks
# game_actors[ActorID].item_check_type = Type
# game_actors[ActorID].equip_check_type = Type
module KEquipSkills
EQUIP_CHECKS_LEARNING = []
ITEM_CHECKS_LEARNING = [1,2]
DIRECT_WEAPONS = {}
DIRECT_ARMORS = {}
DIRECT_ITEMS = {}
CHECK_WEAPONS = {}
CHECK_ARMORS = {}
CHECK_ITEMS = {}
# * Beginning of Customization * #
DIRECT_ARMORS[43] = [162]
CHECK_ARMORS[43] = { :skill => [162], :class => [], :actor => [7,8] }
CHECK_ITEMS[33] = { :skill => [10], :class => [1,2] }
About the Add-Ons
Both ports include a Menu Scene that will allow you to open a new menu after picking an item and its target. This menu will list all the skills you included either in the Constant or the Note Tag. There might be a skill requirement to be able to learn just ONE of those skills. For more details, please read the rest of my posts here.
Terms & Conditions
Free for use in any game.
Include my nickname in your game credits.
Mention this forum as well.
Give me a free copy of your completed game if you include at least 2 of my scripts!
