I want to make a weapon that allows a certain skill type and skills for that type to be added, but when I load the battle, it doesn't work. Does anyone have any idea what I could be doing wrong?
"add skill type feature not working"
RPG Maker VXAce SupportA screenshot of how you have set it up in the database would be helpful.
Make sure the actor is explicitly given both the skill type and the individual skills.
I only want the skills to show up when the weapon is equipped.
The player has to be able to learn those skills. In the class section set the skill type on the class. Then when you equip the weapon set to learn the skill.
If the type is not on the class the character will not be able to learn it.
If the type is not on the class the character will not be able to learn it.
Crap. I want this weapon to be a hidden bonus item, but it doesn't seem like that's possible if the character has an empty skill section for most of the game unless they get this particular weapon.
Did a search. @SST123
Found this... made by shaz.
Forget what I said, just add this in a new script slot below your other scripts.
Found this... made by shaz.
Forget what I said, just add this in a new script slot below your other scripts.
Code:
class Window_SkillCommand < Window_Command
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
return unless @actor
#@actor.added_skill_types.sort.each do |stype_id|
(@actor.skills.collect{|skill| skill.stype_id}).sort.uniq.each do |stype_id|
name = $data_system.skill_types[stype_id]
add_command(name, :skill, true, stype_id)
end
end
end
I know this kind of makes me a noob, but I just copy pasted it into it's own script and nothing changed(I made sure to save the project and stuff before testing, I did learn that from other scripts). How do I make use of this? Do I need to leave a note tag on the class or something?
did you start a new game? New scripts usually will not take effect if you load a saved game.
No, I did a battle test to see if it was working.
You will almost certainly need to start a new game for the script to take effect.
I tried that, but it still didn't help.
Can you thereby describe exactly what did happen? For example, did you get an error message, or was it simply that no new skill was visible? Have you added all those skill types to the actor's class so that they can learn them when the weapon is equipped? Did you put the new script in a slot below all other scrips which affect battles and skills?
In my test, I did not have any skill types set on the class. I added one skill to the weapon and equipped the weapon to the actor. The skill was then usable by the actor. The only issue I had was that the skill type showed up twice. Removed the skill type from the weapon and all is good.
Give us a screen shot of your scripts where this script is located. @SST123
Give us a screen shot of your scripts where this script is located. @SST123
Actually you do not need to put the skill type and skills on the actor. I do it all the time where it is only on the weapon/item, 0 issues. So you might be having an issue with one of two things:
1: Battle test. Battle test quickly loads things and often gives odd results. Check what happens in game and not battle test.
2: Scripts which are changing how add skill type works.
Odds are it is the 2nd. So please post a full list of all scripts you are using.
1: Battle test. Battle test quickly loads things and often gives odd results. Check what happens in game and not battle test.
2: Scripts which are changing how add skill type works.
Odds are it is the 2nd. So please post a full list of all scripts you are using.
I'm at my dad's right now and he only has a mac. I won't be able to post any screenshots until the weekend, but here's a list of scripts I'm using:
1. Yanfly Core engine
2. Yanfly party system
3. Yanfly battle engine
4. Enemy health bar add on for the yanfly battle engine
5. I forget who made it, but it's a script that allows me to have weapons, states, and armours that change the default attack skill when used.
When you get back to your computer, do a full test, not quick battle.
That number 5 script might be the problem. If you remove it, see what happens.
*EDIT ... where is the script I posted located?
That number 5 script might be the problem. If you remove it, see what happens.
*EDIT ... where is the script I posted located?
And I have all 5 of those scripts, no issues. Check your order, as they must be in the exact order Yanfly says.
Edit: Correction. I got Yanfly's weapon attack replace instead of your fifth script. So yes it is probably that script. Try removing it and seeing if things work now. If so that means it is not compatible with another script.
Edit: Correction. I got Yanfly's weapon attack replace instead of your fifth script. So yes it is probably that script. Try removing it and seeing if things work now. If so that means it is not compatible with another script.
I inserted a new page and copy pasted it there.
Original thread: https://forums.rpgmakerweb.com/threads/add-skill-type-feature-not-working.103937/