Cannot learn or forget skills whilst in battle using common events

Hi,

Using the RPG MAKER MV trial and having a blast. Have been planning to buy this game for a while now, but for now still using the trial.

There is no difference except for the time limit as far as i'm aware?

Anyway, I've been making a game and have developed a sort of ammo system using energy, an energy sword and an energy pack (like a bow, a quiver of arrows and arrows).

The problem is that in the common event activated when you use the skill, you must lose the skill when you run out of ammo. However, you do not

lose the skill in the battle, only afterwards. I tried also to see if learning works, but that again only takes place after the battle has ended. 
I've seen a post like this before about VX ACE but the poster only said the had 'got it working' and not a solution. Plus, it was a different version.

Anyone else experienced this or know a solution?

BTW, neither the class or actor learn this skill just by leveling or with traits so that isn't the problem, as I have seen by someone else before.

Thanks, Lixerman99.
 
Can you please post screenshots of the skill and the common event?


There are several points where this could fail, and we need to know what you have done in order to find your error...
WJt3wm.png
7H2WoG.png


Here are pictures of common event and skill.
Works now and don't know why??? I guess i'll find find out at some point. Thanks 🙂

Original thread: https://forums.rpgmakerweb.com/threads/cannot-learn-or-forget-skills-whilst-in-battle-using-common-events.50887/