Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,287
Reaction score
1,780
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,287
Reaction score
1,780
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,287
Reaction score
1,780
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,287
Reaction score
1,780
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,287
Reaction score
1,780
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,287
Reaction score
1,780
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
 

Latest Threads

Latest Posts

Latest Profile Posts

New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D
So Facebook fraudulently took money from me. They even went through my PayPal accounts to find a card that had the money on it. Thinking about deleting my Facebook account because this doesn't happen on twitter, not even close.
Today the 2nd part of the RPGMakergame "A Thief's voyage" came out.


Go show DutchPowerCreations some love.
love it when you forget to put a certain thing in the movement route and suddenly a character starts spinning at 10000 rpm
I'm sorry. I have a bad feeling I've been manic the past couple of days. Antidepressants have only been making things worse somehow -- too drowsy to function, followed by insomnia. Why not making me go crazy to boot?

Forum statistics

Threads
116,992
Messages
1,103,653
Members
152,887
Latest member
xWildSlicerx
Top