Equipment Skills


By Fomar0153
Last Updated: 19 February 2012 (Version 1.1)
Requires: AP System (if learning skills permanently)
Download Link: http://pastebin.com/raw.php?i=YT2SRdwZ (Version 1.1)
Download Link: http://pastebin.com/raw.php?i=ic4surfh (Version 1.0)

This script allows your chosen characters to become weapon masters, which means they learn skills by equipping equipment. You also have the option to learn those skills through an AP System.

Note: The AP System is only needed if you want the ability to have characters learn skills permanently.

4
  

37 comments

  1. NiCk says:

    This is awesome but i can’t get it to work…Trying to use it with the Equipment Skills script…
    I put the scripts under the materials section,
    put the tags right(on the monster,the weapon and the skill) but still nothing happens.
    Even the weapon doesn’t give me the ability i put.
    On the menu i can’t see anything different.
    Please help me, i really like this…

  2. Fomar0153 says:

    Sorry when you say nothing happens what do you mean?
    Is it as though none of the scripts are there? Are the scripts in the correct order? This has to go below the standard equipment skills script. Are you using any other scripts? Have you got the individual equipment and weapons level up scripts?

    • Fomar0153 says:

      Ignore me there, I was having a senior moment.
      I just literally posted an add-on for this and the screenshots are very similar and I must have confused the scripts. Sorry about that.

      What other scripts do you have? Do you get the same result in a blank project? If yes send me a copy and I’ll have a look and see what’s wrong.

      • NiCk says:

        Don’t worry i got it to show up,but now i got another problem.hers what i did.
        i made a weapon called ”Short Sword” and gave it the skill ”Speedbreak”to learn with 50 AP.
        Everything shows up on the menu and is great btw.XD
        Then I made a battle event to see if it works.
        When i beat the battle,it says i gained 50 AP,but i haven’t gained any points…
        hmm i’ll try on a blank project now…
        but i don’t think that’s the problem.
        i might be overlooking sth again.do u have any ideas?thanks 4 the help btw,u r awesome!

      • NiCk says:

        Hmm wait a minute…
        Do i put anything here?
        #————————————————————————–
        # ● New Method gain_ap
        #————————————————————————–
        def gain_ap(ap)
        # your code goes here
        end
        end

        module BattleManager
        #———————————
        maybe that was the problem…when it says ”code” what does it mean?

        • Fomar0153 says:

          It’s over written by a method of the same name in the Equipment Skills script.
          Make sure the AP System is above the Equipment Skills script.

          • NiCk says:

            YES!I got it THAT was the problem!
            I knew it was sth silly.
            THANK YOU!
            Ive been wanting sth like this since my first project in Rpg maker 2003,lol!thanks again!
            (ignore the previous post)

          • Fomar0153 says:

            Glad to hear it worked.

        • NiCk says:

          Well it worked on the blank project…
          Its awesome.!
          Here are my scripts on my main project:
          (in order)

          Yanfly Engine Ace-Core
          Yanfly Battle Engine
          YEA – Battle Engine Add-On: Enemy HP Bars
          Yanfly Engine Ace – Menu Cursor v1.00
          BASIMPLE BATTLE SYSTEM by Molegato

          And under all those i got your

          Equipment Skills
          AP System
          —————–
          That’s all my scripts.
          So are they incompatible with yours?
          Maybe i f i modify anything?

  3. wearetheloser says:

    I have follow your instruction, but the skill already appear on the menu before i’ve got to learn it. And I also already put the ap script above the equipment skill system script.
    Can you solve this problem?

  4. Pheebes says:

    ok there is a minor incompatibility with this script and yanflys equipment engine (when you select a equipment slot to change the equipment list doesnt appear)

    • Fomar0153 says:

      Have you tried the scripts together both ways round?
      If you have I’ll have a look when I find time.

      • Ned says:

        I am getting this error too and have worked them both ways around.
        If Yanfly equipment engine is above it things mostly work, except when you go to equip an item the window disappears.
        If Yanfly equipment engine is below the equipment skills script it gets an error on line 285

        • Ned says:

          Sorry you know what, didn’t read further. This is a really helpful script, thank you!

  5. Pheebes says:

    errr what do you mean both ways around?

    • Fomar0153 says:

      E.g.
      YF Equip
      Eq Skills

      and

      Eq Skills
      YF Equip

      • evan says:

        Hey fomar, I posted about this issue earlier, but so did this guy. anyway, i figured it out.

        If you take create_item_window from class Scene_Equip < Scene_MenuBase from your equipment skills script, and replace it with the create_item_window from Yanfly's Ace Equip Engine, the window is visible and the problem is solved.

        Still an issue with the class change script, though.

  6. Pheebes says:

    ah yh tried that it crashes if your script is placed 1st

  7. Sidbot says:

    Hi there, I like the script but I am having trouble making it compatible with a few other scripts. The problem is narrowed down to this, I need to enclose the ‘AP:n’ part in the notetags.

    Is there anyway to enclose that note tag in brackets ? So basically I need a script that would let me put the tag as Thanks!

    • Fomar0153 says:

      I strongly doubt that is the problem.
      The <> mean nothing it just became the norm to include them. In the skills notetag box just use:
      AP:4
      AP:90
      etc
      Also make sure you have the ap system above this script.

  8. prince_khun13 says:

    I swear you are one of the best scripters.
    You just do everything they request to you as long as its possible.
    Thanks, your scripts are awesome, I wouldn’t ask for anything and just wait for what you will do next.

    I hope you keep the good work going :)

  9. evan says:

    I found a compatibility issue. If you use Yanfly’s class script, then when you equip a weapon that teaches a skill, and then change to a class that can’t equip that weapon, you still have the skill “available” in the new class, and you still learn it when you have sufficient AP, even though you’re no longer equipped on the weapon. Note that this only is a problem when an item teaches a skill from a different class (so a warrior weapon teaching a priest skill, etc.). If you change classes back and forth, you can add on each skill from every weapon, and have multiple equip skills available.

    However, even if you have a weapon that teaches a skill restricted to the class (priest weapon teaching a priest skill), when you change classes and then change back to priest (in our example), the skill from the equipment is still available, despite not having the gear equipped (being empty-handed).

    Also, for some reason this script is interfering with another script (no clue which yet) in such a way that when equipped with a piece of equipment and I select it and try to re-equip something else, the window with the available equipment choices to select is invisible.

    Thanks for the scripts. Any help? :)

    • Evan says:

      I realized my problem was with Yanfly’s script, not with yours. Sorry about that.

  10. Pau says:

    Uhm..hello. I’m a NOOB when it comes to scripts. Uhmm….I need help with the AP system. I put the notetag(AP:5) in the skill Dual Attack and then I put the notetag() in Slime. I receive the AP from the enemy but the AP points needed to learn Dual Attack is 999 instead of 5. I..I don’t know what to do….pls. help me.

    • Fomar0153 says:

      It goes to 999 if it can’t find AP:n just check you’ve got the numbers right on the weapon and that it is dual attack you’re learning, other than that make sure there is no space in AP:5

      • Pau says:

        Ohhh..hahah XD
        I get it now… THANK YOU VERY MUCH!! :D
        Yay!
        Oh, I nearly forgot to tell…
        Your scripts are great. I used some..
        Wait..not just the scripts..you too!!! :D

  11. Kevin says:

    Hey, thanks for the great script. I seem to be having a problem with it when I change the default font with a script though.

    (Ex. Font.default_name = Calibri, Font.default_size = 21)

    It still works properly but scrolling through the equip menu becomes extremely laggy.

  12. Neph says:

    First of all, thank you for this script, it’s exactly what I was looking for for the project I’m starting.

    I’m running into a bit of an issue I haven’t quite been able to figure out. Nothing wrong with the script, but something I’d like to do that doesn’t seem to be supported as-is (unless I’m just missing something). For some background: basically, I was looking to replace the basic “attack” command in my game with a set of weapon-specific skills that change based on the equipped weapon.

    I’ve been able to do so flawlessly so far, but the snag is that if a character is ever unarmed, they no longer have a means of attacking (I have class skills as well, but most of the skills that primarily deal damage are the weapon skills, not the class skills). Is there any way I could assign a skill to a character with no weapon equipped through this script?

  13. haitike says:

    I got a bug. When I unequip the item before I learn the skill with AP, I still have the skill in the skill list and I can use it.