Unique item effect in battle

Hey guys, first thread!

Short and sweet -- What I would like to have is:

An item that when you use it in battle, that character that used it will learn a new skill. 

Now I tried adding it in the [effects > other > "Learn"] section in the database but it didn't quite work out.

I'm guessing it's because when you add damage to the item it does not correspond with adding any new skills to your character that uses it and only effects the enemy?

I'm hoping i can ignore any script modifications at the stage but if its not possible without touching script, let me know.

Thanks in advanced.
Learn Skill should be fine. Are you certain your actor (or actor's class) has the appropriate Skill Type enabled?


Explain what you mean by "didn't quite work out"
well, the target should be an actor if you want it to learn a skill... if it's an enemy target skill, but you want the actor that used it to learn a skill, you can maybe use the damage formula bar for that or use common events...
Well when I used the item to kill the enemy. I checked my characters skills in the main menu (out of battle) and it wasn't there.
well, the target should be an actor if you want it to learn a skill... if it's an enemy target skill, but you want the actor that used it to learn a skill, you can maybe use the damage formula bar for that or use common events...
that... effects are applied to the target so since the target was an enemy, it tried to add the skill to the enemy, which is why your actor didn't learn he skill
If you really want the item to deal damage to an enemy /and/ teach the user of the item a skill, I don't think you can get around scripting. You could have the item launch a common event (through the Other tab in item effects), but you'll need some scripting then to make sure the right character learns the skill.
just use the formula bar... you can add a add skill script call there before the damage part...
Hah, I forgot about the formula method... Here's how you do what adiktuzmiko mentioned:

learn_skill_offensive_item.PNG


  • a is the user of the item, b is the enemy
  • a.learn_skill(id_of_skill_in_database) <- Teaches the user a skill. For example, I used skill ID 21 which is Bodyslam by default.
  • Remember to include the semicolon after the a.learn_skill( ) call and before the damage formula.
  • Only a.learn_skill( ); is necessary for the learn skill method; the rest you can do whatever you want with.

Hope that helps you out 🙂
GalenmerethWorked like a charm! Thanks heaps

adiktuzmikoAnd thanks to you for sparking the idea for Galenmereth 😛
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/unique-item-effect-in-battle.15407/