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!
To find the code for the desired keyboard key, enter this website:
keycode.info
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)
• 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>
NOTE¹: This only works with events set to trigger by the Action Button.
NOTE²: The distance button only works for events with normal priority.
To find the code for the desired keyboard key, enter this website:
JavaScript Event KeyCodes
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)
• 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>
NOTE¹: This only works with events set to trigger by the Action Button.
NOTE²: The distance button only works for events with normal priority.
Screenshots
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 is saved a lot of lines, in case you use a conditional branch instead. A more clean event, easy to maintain ^^
Update Log
Version 1.0.1 - 10/15/2020
- Adapt to Eli Book 2.0.0
Version 1.0.0 - 09/18/2020
- Plugin release!
- Adapt to Eli Book 2.0.0
Version 1.0.0 - 09/18/2020
- Plugin release!
Last edited:
