Hi, I tried to create a new function that should be called from YANFLYs MainMenu System from the ActorBind. It is really important for this script that I have selected an actor first. So I did this in the Parameters:
Menu Name: "Do Something"
Menu Symbol dosomething
Menu Show true
Menu Enabled true
Menu Ext
Menu Main Bind this.commandPersonal.bind(this)
Menu Actor Bind this.doSomething.bind(this)
For simplicity the content of the doSomething function is for now:
Scene_Menu.prototype.showUnitShop = function() {
this.popScene();
};
However after I select the actor, the scene is not popped but the gameoverlay freezes (fps stay at 60, commands like F2 still work, no output on debug console). The prototype function is correctly loaded into js.
I really do not know why my function is not executed. Do you have some hints for my what I have to change? Just writing this.doSomething() in the actorBind parameter will execute the function but even BEFORE $gameParty._menuActorId will be set.
Thanks in advance!
Menu Name: "Do Something"
Menu Symbol dosomething
Menu Show true
Menu Enabled true
Menu Ext
Menu Main Bind this.commandPersonal.bind(this)
Menu Actor Bind this.doSomething.bind(this)
For simplicity the content of the doSomething function is for now:
Scene_Menu.prototype.showUnitShop = function() {
this.popScene();
};
However after I select the actor, the scene is not popped but the gameoverlay freezes (fps stay at 60, commands like F2 still work, no output on debug console). The prototype function is correctly loaded into js.
I really do not know why my function is not executed. Do you have some hints for my what I have to change? Just writing this.doSomething() in the actorBind parameter will execute the function but even BEFORE $gameParty._menuActorId will be set.
Thanks in advance!