Hi, I've been trying to look the answer for this question in the forums but I always come up with answers that don't fix my problem. I don't know if it's just not possible to change it, but any advise would be helpful.
From what I gathered when you press the Ok/Enter key it works by default as .isPressed, and I'd like it to work as .isTriggered, so it doesn't skip the text messages, mess with complicated eventing, etc.
I fixed the eventing problem with conditionals and the Input.isTriggered('ok') script, but I still have no idea how to fix the message problem, since I don't know where the key takes the order from. I still want to use the fast-forward text option, so using a plugin to just remove it wouldn't help me.
I also tried using Yanfly's Button Common Event plugin to override the Enter Key function but I can't find a way to make a Common Event that works for this.
And finally I tried to look the INPUT part up on the rpg_core.js file to see if I can find a way to change the default option (this would be the ideal solution for me), but I don't know how to fix the code (my javascript knowledge is quite basic).
Would exchange the name of the function fix it? Or swap the return part? Or I'm in the completely wrong part of the code and I should focus on the 'keydown'? I have the feeling I would need to change more parts of the script and I don't want to mess it up.
In short: is there a way to change the default way the enter key works? If not, anyone has any advice for the text message skip problem without giving up the fast-forward option?
Thanks for any pointers/help you could give me.
From what I gathered when you press the Ok/Enter key it works by default as .isPressed, and I'd like it to work as .isTriggered, so it doesn't skip the text messages, mess with complicated eventing, etc.
I fixed the eventing problem with conditionals and the Input.isTriggered('ok') script, but I still have no idea how to fix the message problem, since I don't know where the key takes the order from. I still want to use the fast-forward text option, so using a plugin to just remove it wouldn't help me.
I also tried using Yanfly's Button Common Event plugin to override the Enter Key function but I can't find a way to make a Common Event that works for this.
And finally I tried to look the INPUT part up on the rpg_core.js file to see if I can find a way to change the default option (this would be the ideal solution for me), but I don't know how to fix the code (my javascript knowledge is quite basic).
Code:
Input.isPressed = function(keyName) {
if (this._isEscapeCompatible(keyName) && this.isPressed('escape')) {
return true;
} else {
return !!this._currentState[keyName];
}
};
Input.isTriggered = function(keyName) {
if (this._isEscapeCompatible(keyName) && this.isTriggered('escape')) {
return true;
} else {
return this._latestButton === keyName && this._pressedTime === 0;
}
};
In short: is there a way to change the default way the enter key works? If not, anyone has any advice for the text message skip problem without giving up the fast-forward option?
Thanks for any pointers/help you could give me.


