Is there a way to assign roles to other key buttons that aren't being used for the game? If so, how? I think it would be neat if I could assign a button not being used to call a Common Event.
Thanks for reading!
Thanks for reading!
(function($){
//Use this site "https://keycode.info/" to find the keycode for the button you want.
Input.keyMapper[55] = "7";
var Alias_Scene_Map_updateMain = Scene_Map.prototype.updateMain;
Scene_Map.prototype.updateMain = function() {
Alias_Scene_Map_updateMain.call(this);
if (Input.isTriggered('7')) { // where "7" has to appear exactly as it does when you write Input.keyMapper[55] = "7"
$gameTemp.reserveCommonEvent(1); //where "1" is the Common Event ID
}
}
})()
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/script-to-assign-a-button-to-a-common-event.139007/