Changing SE (solved)

Hello there, I'm Fosca. I'm pretty new here and this is my first thread. I hope I did not post in the wrong forum.

Let's get to the heart of the matter. I recently started making my first RPG MV game and so far so good. I solved on my own every trouble that popped out and meanwhile I'm learning scripting bit by bit. Today I came up with an idea for improve my personalized menus, but I haven't found a way to do it. Indeed it's a very little improvement, but it will add that detail that makes the game experience more enjoyable - and I am a perfectionist. Therefore I am here to ask you: is there a way to change with eventing/scripting the SE setting on database system? I want to change in game OK and Cancel sound.

Spoiler: just to be clear
Schermata 2019-10-20 alle 02.05.31.png

While looking for a solution, I found this script:

Code:
$gameSystem.setVictoryMe(name);


It changes the victory ME. Then I tried $gameSystem.setCancelSe(name) but it says it's not a function, sadly.
Like I said, it's not too important but I will be grateful if someone can help me, and more grateful I will be if someone can explain how to do myself because I want to learn as much as possible.

I've said it all. Thanks in advance and have a nice day (or night. The time zone...)!
I'm quite new to Javascript myself, so I can't chime in on exactly how to change the SE in the database... But the rpg_managers.js file has the lines....

SoundManager.playOk = function() {
this.playSystemSound(1);
};

SoundManager.playCancel = function() {
this.playSystemSound(2);
};

Perhaps those are a good area to check out.
the plgin to change it anytime, midgame or make some of a setting of it, you can use this plugin.
it work on all sounds in that list.
Thanks guys for your help. The plugin is exactly what I was looking for and I am definitely going to study how it works.

Thanks again. This thread can be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/changing-se-solved.114393/