Need to skip self-use skill confirmation in camp menu? Luna/Yanfly scripts

Hi. So, I'm using the Luna Engine with the YEA scripts.
For certain skills that target the user, I need to skip the confirmation for actor selection (who to use it on).
They way it's set up is that this works during battle, but not from the camp menu.
It automatically applies the skill for the actor, but leaves the actor select window open. I need that to close.
I've tried editing the script, but to no avail.
I'm thinking I could just add a common event - script to the skill's effects, but I'm not sure what to add
to close the actor confirmation window. It's probably something stupidly simple I'm not thinking of.
Any help would be greatly appreciated.
This is really a player Quality-of-Life aspect, but it's important to me. Thanks in advance!

I've moved this thread to RGSSx Script Support. Thank you.

UPDATE: I saw on a thread where a mod asked the OP to report a thread to be closed, so Imma do that. Hope it's cool.

Fixed the problem. For those who experience this issue (especially new to RGSS), this is REALLY easy to do!

First of all, the execution is handled in Window_MenuActor. It happens around line 40.

Spoiler
# added call_handler🙂cancel) to close windows when item/skill is auto-used on self.

def select_for_item(item)
@cursor_fix = item.for_user?
@cursor_all = item.for_all?
if @cursor_fix
select($game_party.menu_actor.index) ;
call_handler🙂cancel)
elsif @cursor_all
select(0)
else
select_last
end
end
end

Basially, it says, when an item is selected (def select_for_item(item)) , check if the item is for the person who used the item (or skill).
If the item has the property of "the user" for the scope, then fix the cursor and go ahead and select the index of the person who selected the item (select($game_party.menu_actor.index) 😉, otherwise do the other things (everything from elsif down).

What I did was add call_handler🙂cancel) which is already defined as a method and is just literally a call handler for the cancel "input".
So, after it selects the user, it just cancels out, eliminating that annoying window!

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/need-to-skip-self-use-skill-confirmation-in-camp-menu-luna-yanfly-scripts.112508/