KEquipSkills XP

KEquipSkills XP
Version 1.2.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!

Instructions
Ruby:
# * 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] }


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! 😛
1597218244547.png

1597218279543.png

HOLY GUACAMOLE, it worked!!!
thank you so much!!!
Curious Update​

This time I added the possibility of equipping more than a single skill per equipment slot. What makes it a great thing is that you still can equip a single skill on any other slot!
This script now starts looking like a simple version of a Materia script to me.
1601235360684.png

1601235384681.png



I just added one thing and it gave an error
Don't do 009. Just do 9.
Yeah, even 009 should have worked but it's totally unnecessary so follow his recommendation, @ButterChin. The actual reason why it failed was that one of the characters seems to be an O as in Omaha or Otter or OK. 😀
@kyonides
i have a question on the conversation
Your script was just what I needed! ^^
Script Update!​

KEquippedSkills has been rebranded as KEquipSkills! 😮

From now on, version 1.1.1 now lets you set 2 different sets of CONSTANTS depending on HOW you want the Equipment Skills to be equipped by your Actors.
  1. Direct Method
  2. Checks Method
What this means is that you can simply tell the game that a specific Actor has a direct equipment skill learning process. OR the Actor needs to pass a few checks before he or she can equip the skills by equipping a weapon or armor based upon the Class ID or the Actor's ID.

By the way, using 0 as an ID allows either any Class or any Actor to learn a given skill.
Go Equip Weapons or Armors or even Consume Items!​

Version 1.2.1 of your favorite script allows you to learn skills at once not just by equipping anything but also by using items like scrolls or books or whatever you might come up with! 😀

It also allows you to learn 1+ skills per equipment piece even while using the old Direct Method.

Just keep the following instructions in mind.

Code:
# 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.
KEquipSkills XP Has Got a Brand New Add-On!​

Starting from today, the RMXP port includes a simple add-on that might show up during the Item Menu scene.
😅 Why does it even matter?
Well, it happens to feature a new type of Item that will let the Target Actor learn just 1 out of a group of predefined skills.

Let's take a look at the embedded comments for a moment.

Code:
# * KEquipSkills XP - Pick Skills Item Add-On * #
#   Scripter : Kyonides Arkanthes
#   2023-06-15

# This script add-on will allow the parent script to let a given hero learn
# ONE out of a bunch of skills only.

# It depends on the default Scene_Item class to work properly.

# - Add a special Pick Skill Item - #
#   Create New Lines like the following:
# PICK_SKILL_ITEMS[ItemID] = { :have => [SkillID1, etc.],
#     :learn => [SkillID10, etc.] }

Of course, you can leave a note with 6 skills you can learn and have 0 skills as a requirement.
Yeah, you simply setup the Constant like this...

Ruby:
  PICK_SKILL_ITEMS[ItemID] = { :have => [0], :learn => [10, 12, 14, 18] }

The new script is already included in my demo, but it's not mandatory to implement it in your games at all.
Hello! Your script is amazing, but there was an error I found in the demo. When you use the Scroll of Ice, an error occurs:
1709705129271.png
Thanks I fixed it but I have no time to make a proper announcement.
Love that there is still love for RMXP <3 Was confused at first to find such a recent script which is also amazing. One thing that struck me and came to me as a confusion was actually compatibility:

It does work stand-alone with the "standart" Equip-Menu, but if you add Multislots by DerVVulfman the Skills won't show. If you use GUILLAUME777's Multi-Slot Script, the Skills show but are a mess in the Menus.

Compatibility would be cool, I could not find how to implement multi-slot functionality into your script yet but I am reading through it if that's no problem for you <3

Edit: Personal Opinion I prefer DerVVulfman's Version, it is cleaner.
This is quite weird because I managed to make DerVVulfman's MultiSlots script work flawlessly without making any effort at all. 😮 I've even forced Aluxes to learn Thunder while Basil got the Earth skill instead. I had no issues while fighting the ghosts as usual.
This is quite weird because I managed to make DerVVulfman's MultiSlots script work flawlessly without making any effort at all. 😮 I've even forced Aluxes to learn Thunder while Basil got the Earth skill instead. I had no issues while fighting the ghosts as usual.
That is very weird indeed. Also the Attached file only contains the *.dll file. But even when I copied that one over it didn't change anything.

My suspection is that the Multi-Slot System utilizes the [SDK] RMXP Standard Development Kit - which may or may not collide with my other stuff I messed around with (Map_Scene for example).

So I tried putting your script into the Multi-Slot one (vanilla, nothing changed what so ever.)

This is what happens:

img_01.png


I equip the Bronze Shield, which should trigger Skill "Earth" [Skill ID = 19]

img_02.png


But when I check the Skill_Scene no new Skills show up.


In your configuration the first direct command is set as

DIRECT_ARMORS[1] = [19]

which translates to the Bronze Shield. But still no Skill shows up unfortunatelly. I did A and B testing in a way where I put a small skill window into the equip scene to check what and if something is changing. I am also confused since I have all needed files and *.dll's in my root of the folder.

I am interessted to find out what the differences are between your files and mine are because I see no disturbance nor weird script overwrites or scripts canceling out each other.
This is what I've been using, hopefully with all files included as first intended.
In my case everything looks pretty default-like instead of showing all equipment on the left-hand side.
Now I am even more confused then before actually.

So I got the attachment and went to change just one thing:

DIRECT_ARMORS[1] = [1]

As a quick and easy test to see if the "Bronze Shield" enables "Heal" and it does not.
I am personally only interessted in the "Direct" method since I can set the equibable Armor/etc. in the class itself so there is no need for me to check anything in my case.

What I am basically looking for is multiple "Accessory" Slots that can provide certain skills such as seen above "Analyze" and other usefull Utility Skills.

But for some reason the same thing happens as in my prior post and the Skill does neither show up in the Skill_Menu Scene nor in Battle or anywhere else.

img_03.png
Bild_2024-04-17_114353126.png


And as I said: All I did was:
- download attachment
- unzip attachment
- open "Game" RPGXP Project
- change DIRECT_ARMOR to DIRECT_ARMOR[1] =[1]

# * Beginning of Customization * #
DIRECT_ARMORS[1] = [1]
CHECK_ARMORS[43] = { :skill => [162], :class => [], :actor => [7,8] }
CHECK_ITEMS[33] = { :skill => [10], :class => [1,2,3] }
CHECK_ITEMS[34] = { :skill => [7], :class => [1,3,4,6] }
PICK_SKILL_ITEMS[38] = { :have => [57, 61], :learn => [13, 16, 19] }
# * End of Customization * #

- save and run game
- equip "Bronze Shield"
- check Skill Menu



EDIT: Before I go fully insane I tried annother thing: I currently run a non-registered copy of WIN10 on my laptop, thought that might be the issue. But I have now installed RMXP on a couple other Systems and it still does not work. That really made me feel better but still didn't solve the issue.
I'm sorry but using the full script or the direct version didn't let me reproduce your issue at all. I used the default executable and very own binary player, and both yielded the exact same results with all the skills the armor was set to teach :ahappy: Aluxes.

The only methods I suspected that could ever cause an issue were aliased so that wouldn't allow them to be ignored. Thus, there was no way to make them forget to include the new armor skills.

Are you completely sure you place my script AFTER / BELOW MultiSlots?
Yes, I am 100% sure because I used your very own, zipped up files INCLUDING your Script and the Multi-Slot Script. See above.

Edit: added screenshot of Script Editor
I also suspected the "Optimize" Menu for some reason and even by right out removing the parts the results stay the same: No Skills are shown.

Maybe @DerVVulfman could maybe shed some light into my issue. I usually don't like pinging people but maybe this'll help. Would also be cool to know if other people have the same issue as me or maybe even not.

screenshot_script_order.png

Original thread: https://forums.rpgmakerweb.com/threads/kequipskills-xp.125173/