MV Bush opacity change by script within an event

Hello everyone, I desperately need help in changing opacity of the bush in tilesets.
With the help of community members I've find a small code to be added as a plugin to change bush depth, however what I need is to be able to change both opacity and depth of bushes from an event (so a script is needed or alternatively a variable-linked value). Anyone knows of ways to make this? Thank you.

With the Help of CT_Bolt that's the code related to opacity changes, but I can't make it work! I've tried to add it to a separate file as a plugin or to add it within the Shaz code for depth, but it won't work. Any ideas how to make the opacity to be equal to variable 02 value within an event flow?

Code:
    $['Sprite_Character.prototype.createHalfBodySprites'] = Sprite_Character.prototype.createHalfBodySprites;
    Sprite_Character.prototype.createHalfBodySprites = function() {
        $['Sprite_Character.prototype.createHalfBodySprites'].apply(this, arguments);       
        var customBush = this._character.getBushSettings();       
        if ($['Default Opacity'] === '0') this._lowerBody.opacity = 0;       
        var opacity = (customBush) ? customBush.opacity : $['Default Opacity'];
        if (opacity) this._lowerBody.opacity = eval(opacity);       
    };



Original thread: https://forums.rpgmakerweb.com/threads/bush-opacity-change-by-script-within-an-event.154351/