Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
1F4E9Hi.png

Author: Hakuen Studio

Introduction

There are 3 ways for a player to activate an event:
• Event touch
• Player touch
• Action button

If by chance you want the player to activate the event in another way, you would normally have to create a parallel event with the condition:
if (Input.isTriggered ('button name')) // Executes commands.
This plugin gives you the possibility to activate events with another action button or even, activate them from a distance!
Thus, you can create interesting systems without the need for script calls, complex events full of conditions, or parallel ones.

• One button to hold something (Z) / Another to release (extra)
• A button to talk to an NPC (Z) / Another to steal from it (extra).
• A button to throw a stone in a monster! (distance)

Features

• Adds a new action button that you can trigger the same events and execute different commands!
• Adds a new action button that you can trigger the same events from distance and execute different commands!
• It gives the option to remove the event behavior from looking at the player when activated with the extra button.

How to use
It's very simple!

Your event page must be configured in two parts:

1st part will be activated with the normal Z button ('ok')
2nd and 3rd part will be activated with the extra action button or the distance button.
After you finish setting up the first part, you can make the other parts entering two commands in the event following that order:

Exit Event Processing
Label (the name of the label contained in the "Trigger label" parameter)
Event text:

◆Comment: Default Action
◆Comment: Put here anything you want to execute by default, using the normal action button.
◆Comment: Need to call exit event processing to not process the other commands.
◆Exit Event Processing
◆Comment: Extra Action button
◆Label: Extra trigger
◆Comment: Put here anything you want to execute using the extra button
◆Comment: Need to call exit event processing to not process the other commands.
◆Exit Event Processing
◆Comment: Extra Action Distance button
◆Label: Distance trigger
◆Comment: Put here anything you want to execute using the extra button
• Now, when activating the event with the standard action button (Z) it will not perform either the extra action part or the distance one.

• And if you activate the event with the other buttons, it will only execute the part that is between the label and exit event processing.

• You can optionally remove the behavior of the event to turn at the player when you interact with it using the extra action button or the distance button.

Just put in the note field of the desired event: <lock>

Here is a list of the default keys of RPG Maker(Keyboard/Gamepad):

"tab", ■ Keyboard: tab
"ok", ■ Keyboard: enter, space, Z ■ Gamepad: A
"shift", ■ Keyboard: shift ■ Gamepad: X
"control", ■ Keyboard: control, alt
"escape", ■ Keyboard: escape, numpad0, insert, x
"pageup", ■ Keyboard: Q, pageup ■ Gamepad: LB
"pagedown", ■ Keyboard: W, pagedown ■ Gamepad: RB
"left", ■ Keyboard: left arrow, numpad4 ■ Gamepad: D-pad left
"up", ■ Keyboard: up arrow, numpad8 ■ Gamepad: D-pad up
"right", ■ Keyboard: right arrow, numpad6 ■ Gamepad: D-pad right
"down", ■ Keyboard: down arrow, numpad2 ■ Gamepad: D-pad down
"debug" ■ Keyboard: F9
"cancel" ■ Gamepad: B
"menu" ■ Gamepad: Y
NOTE¹: This only works with events set to trigger by the Action Button.

NOTE²: The distance button only works for events with the normal priority.

Screenshots
YThzktP.jpg

1KeMHj5.jpg

oC8gXla.jpg


This event will process different commands according to what button is pressed:
The first block will be executed only with the normal action button (Z)
The second block will only execute with the extra action button
The last block will only be executed with the Extra Action Distance button!
Ad the event trigger option remains with the Action Button.
With that, you can see that it saved a lot of lines, in case you use a conditional branch instead. A more clean event, easy to maintain ^^
c9C6D3K.png

Update Log
Version 3.0.0 - 08/13/2021
- Add a parameter that lets you overwrite the default keys.
- Add a parameter to set a minimum value for the distance button work.
- Updated the help file.
- Need Eli Book 4.0.0
Version 2.1.0 - 05/03/2021
- Added support for the gamepad.
- Requires Eli Book 3.3.0 now.
Version 2.0.1 - 04/25/2021
- Added a dropdown list to choose the keyboard key to the action and distance button.
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
Version 1.1.0 - 12/02/2020
- Removed the plugin parameters that insert name to the button. Now the names are "okExtra" and "okDistance".
- Don't need to put a code in the plugin parameter anymore. Just insert a keyboard letter/key.
Version 1.0.1 - 10/15/2020
- Adapt to Eli Book 2.0.0
Version 1.0.0 - 09/18/2020
- Plugin release!
 
Last edited:

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 1.1.0 - 12/02/2020
- Removed the plugin parameters that insert name to the button. Now the names are "okExtra" and "okDistance".
- Don't need to put a code in the plugin parameter anymore. Just insert a keyboard letter/key.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.0.0 - 12/18/2020
- Adapted to work with Eli Book 3.0.0.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.0.1 - 04/25/2021
- Added a dropdown list to choose the keyboard key to the action and distance button.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 2.1.0 - 05/03/2021
- Added support for the gamepad.
- Requires Eli Book 3.3.0 now.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Version 3.0.0 - 08/13/2021
- Add a parameter that lets you overwrite the default keys.
- Add a parameter to set a minimum value for the distance button work.
- Updated the help file.
- Need Eli Book 4.0.0
YThzktP.jpg
 

Marianna

Queen of wolves
Member
Joined
Sep 2, 2018
Messages
20
Reaction score
11
First Language
Spanish
Primarily Uses
RMMV
Hi, Eliaquim. Amazing plugin! I have a question. It could be possible to have more than one alternative trigger button?
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,343
Reaction score
1,837
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi, Eliaquim. Amazing plugin! I have a question. It could be possible to have more than one alternative trigger button?
Hi!
By default, not. But a way for doing this would be making a copy of the plugin file, set it to a different name, like:
EliMZ_ExtraTrigger_2.js

And inside plugin also change the global object reference to another name.
I don't have the time to do it now, but I can do it for you if you don't make it.
 

Marianna

Queen of wolves
Member
Joined
Sep 2, 2018
Messages
20
Reaction score
11
First Language
Spanish
Primarily Uses
RMMV
Thanks for your answer, Eliaquim. Very kind. I also thought of this solution. I think I can do it myself, but if I have any questions I will not hesitate to ask you. Thank you. I was just wondering if it was possible to put several extra custom buttons in the same plugin. But if not, there is no problem. I'll take the long way then. Thank you again. Have a nice day.
 

Latest Threads

Latest Posts

Latest Profile Posts

Fun fact. Today it's exactly 2600 days since I met my now gf for the first time. Sometimes being a programmer can be really useful. O:)
Is RPG Maker VX (rgss2) still relevant? xD
yo how do I change my profile picture?
ZyCHqk2.png

Something about top-downs.
I have never felt so attacked by a tree before :LZSlol: it took 10++ hours to make but at least it looks pretty LOL

Untitled-1.png

Forum statistics

Threads
118,465
Messages
1,116,126
Members
155,445
Latest member
Rwaterlava
Top