Skill calling common event (before selecting character)

Hello!

I managed to do some skills call common events.

I use that as the command "Think" in my game, which every skill being a concept. I will use that as a help to the player. Problem is, as a skill, I need to select my own character before calling the common event and it feels a little strange.

Is it a faster way to call the common event? By directly selecting the skill?

Thanks in advance
If it's a command window you can override its "select" function, so you can try this:

Code:
Window_BattleSkill.prototype.select = function(index) {
    Window_SkillList.prototype.select.call(this, index);
    $gameTemp.reserveCommonEvent(desiredEventId);
};

EDIT: Sorry, I just noticed it's for vx... but the idea is the same tho, but in rgss instead of js
If it's a command window you can override its "select" function, so you can try this:

Code:
Window_BattleSkill.prototype.select = function(index) {
    Window_SkillList.prototype.select.call(this, index);
    $gameTemp.reserveCommonEvent(desiredEventId);
};

EDIT: Sorry, I just noticed it's for vx... but the idea is the same tho, but in rgss instead of js

Thanks! Let me try this yes
Hello @Lantiz

Where exactly should I put that in VX Ace?

Thanks again
Sorry, as I mentioned on the edition of my previous post, it's a Javascript code that I thought your problem was for MV.

What I meant by "the idea is the same" is that VX, in it's RGSS code, probably has a Class named "Window_BattleSkill" that must have a "select" method, which could be overridden to reserve a common event.

Unfortunately I'm not an owner of VX, so I won't be able to help :/

Sorry if it's confusing, it was my mistake not to check before posting.
Sorry, as I mentioned on the edition of my previous post, it's a Javascript code that I thought your problem was for MV.

What I meant by "the idea is the same" is that VX, in it's RGSS code, probably has a Class named "Window_BattleSkill" that must have a "select" method, which could be overridden to reserve a common event.

Unfortunately I'm not an owner of VX, so I won't be able to help :/

Sorry if it's confusing, it was my mistake not to check before posting.

No, no, NP! On the contrary, it's great you were willing to help. Thanks a lot Lantiz!

Original thread: https://forums.rpgmakerweb.com/threads/skill-calling-common-event-before-selecting-character.76092/