Code:
SceneManager._scene._goldWindow.onmouseover = function() {
$gameParty.members()[0].gainHp(-100);
}
SceneManager._scene._goldWindow.onmouseover = function() {
$gameParty.members()[0].gainHp(-100);
}
$gameParty.members()[0]
$gameParty.leader()
$gameParty$gameParty.gainGold(x);
Original thread: https://forums.rpgmakerweb.com/threads/does-something-like-onmouseover-exist.150734/