Event Trigger Labels
In RPG Maker, you have events on the map that can be triggered when the player is either standing on top of them or in front of them. When a player wishes to trigger an event, they press the “action” button, which by default is the Z or Enter key. When an event is triggered, they will execute the entire list of commands.
However, what happens if you want to allow a player to interact with an event in different ways? For example, if a player walks up to an event and talks to it normally, they might just have friendly conversation.
On the other hand, if a player walks up to an event and presses the A key, this might issue a challenge to the event to a mini-game, and the event will ask you if you’re sure you want to do this.
This plugin allows you to separate an event’s list of commands into different sections. Depending on how the event is triggered, a different section would run, allowing you to create unique behaviors when the player interacts with an event.
Download
Plugin: download here (right-click, save as)
This is for MV only. For the Ace version, click here.
Installation
Download ths plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_EventTriggerLabel plugin.
Once it is in your list of plugins, turn the plugin on.
Tutorials
If you prefer watching a video instead of reading the usage, you can take a look at Echo607’s tutorial
Usage
By default, all commands on the current event page are executed from top to
bottom when the event is run.
We can create sections of the page that will only be run when the trigger
label condition is met.
Button Trigger Labels
These trigger labels require certain buttons to be pressed.
For example, you might have a set of commands that only run when the “a” key is pressed, and another set of commands that are only run when the “b” key is pressed.
To create a button trigger label, create a “Label” event command and write
button_trigger BUTTON
Where the BUTTON is the name of a button that should be pressed.
Here is an example of an event that can be triggered with 4 different buttons.
Depending on what plugins you’re using for buttons, it may be different. For example, if you’re not using any custom keyboard or input scripts, you don’t really have much choice beyond these buttons:
ok - Z key, Enter key escape - X key, Esc key control - left control, right contorl shift - left shift, right shift alt pageup - Q key pagedown - W key
These apply to Yanfly’s keyboard config plugin as well.
So for example, if you want the event in front of you to be triggered when you press the X key (which usually goes to the menu), you can write
button_trigger escape
Which would intercept the escape button press and trigger the event instead of opening the menu.
If you’re using a full keyboard plugin such as ZE – Key Mapper, you would then have access to the entire keyboard!
Please look at the instructions for your input plugin on what buttons are available. I have also provided a plugin parameter that allows you to show “debug” information, which displays the name of the button that’s being pressed. You will use this for your labels.
Its like you read my mind! You seem to know so much about this,
like you wrote the book in it or something. I think that you
could do with some pics to drive the message home a bit, but instead of that, this is
wonderful blog. An excellent read. I will certainly be back.
Exceptional post however I was wanting to know if you could write a litte more on this topic?
I’d be very grateful if you could elaborate a little bit further.
Appreciate it!
Appreciation to my father who told me on the topic of this weblog,
this webpage is genuinely awesome.
I could not resist commenting. Perfectly written!
I’m impressed, I must say. Seldom do I come across
a blog that’s equally educative and interesting, and
without a doubt, you’ve hit the nail on the head.
The issue is something too few men and women are speaking intelligently
about. I’m very happy that I stumbled across this during my search for something concerning this.
I was recommended this web site by my cousin. I am not sure whether this post is
written by him as no one else know such detailed about my trouble.
You’re wonderful! Thanks!
What’s up i am kavin, its my first occasion to commenting anyplace,
when i read this piece of writing i thought i could also
create comment due to this sensible article.
I really like it whenever people come together and share views.
Great site, continue the good work!
I was curious if you ever considered changing the layout
of your blog? Its very well written; I love what youve got to say.
But maybe you could a little more in the way of content so people could connect with it better.
Youve got an awful lot of text for only having one or 2 images.
Maybe you could space it out better?
Hi there friends, its enormous paragraph regarding tutoringand entirely explained,
keep it up all the time.
Nice blog here! Also your web site rather a lot up fast!
What web host are you the use of? Can I get your associate link for your host?
I wish my website loaded up as quickly as yours lol
Simply desire to say your article is as astounding.
The clearness in your post is simply nice and i can assume you’re a professional in this subject.
Well along with your permission allow me to seize your feed to stay up to
date with approaching post. Thanks 1,000,000 and please carry on the rewarding
work.
Hello, yeah this piece of writing is really fastidious and I have learned lot of things
from it regarding blogging. thanks.
Good article! We are linking to this particularly great article on our site.
Keep up the great writing.
I am in fact delighted to glance at this blog posts which includes tons of helpful information, thanks for providing such data.
You can certainly see your enthusiasm within the article you write.
The arena hopes for more passionate writers such as
you who aren’t afraid to say how they believe. Always follow your heart.
I visited various sites except the audio quality for audio songs present at this website is genuinely superb.
Its like you read my mind! You seem to know a lot
about this, like you wrote the book in it or something. I think
that you could do with a few pics to drive the message home a
bit, but other than that, this is magnificent blog. An excellent read.
I will certainly be back.
I always emailed this blog post page to all my friends, since if like to
read it next my links will too.
It’s the best time to make some plans for the future and it is time to be
happy. I have read this post and if I could I desire to suggest you few interesting things or suggestions.
Maybe you can write next articles referring to this article.
I want to read even more things about it!
This piece of writing is actually a pleasant one it helps new web users, who are wishing in favor of blogging.
What’s up to every body, it’s my first go to see of this weblog; this weblog contains amazing and genuinely
excellent material in favor of readers.
It’s truly a nice and useful piece of info. I’m glad that
you shared this helpful info with us. Please stay us up to date like this.
Thank you for sharing.
Hey! I just wanted to ask if you ever have any problems
with hackers? My last blog (wordpress) was hacked
and I ended up losing a few months of hard work due to no back up.
Do you have any solutions to protect against hackers?
Pretty nice post. I just stumbled upon your blog and wanted to say that
I have truly enjoyed surfing around your blog posts.
In any case I’ll be subscribing to your rss feed and I hope
you write again very soon!
Great website. Lots of useful information here.
I’m sending it to a few buddies ans also sharing in delicious.
And of course, thanks for your sweat!
Hey there just wanted to give you a quick heads up. The text in your post seem to
be running off the screen in Ie. I’m not sure if this is a format issue or something to do with browser compatibility but I thought I’d post to
let you know. The design look great though! Hope you get
the issue resolved soon. Thanks
Thanks a lot for this plugin, it’s going to be really useful for my experimentation phase in MV
Although I would like to bring this up to your attention, I am not sure if this logic is intended or not.
https://forums.rpgmakerweb.com/index.php?threads/conditional-branch-not-calling-else.86404/
It seems that the labels are ignoring their placement in the logic. If I place a label inside an if for example, it won’t check if the conditions for the label existing are met or not.
I don’t know if this is a problem with your logic, or RPG Maker MV’s logic on how it is handling labels or not, as I only just got started with RPG Maker.
I just reread through your documentation and saw this.
“By default, all commands on the current event page are executed from top to bottom when the event is run.”
So it’s likely that this behavior is unintentional.
nice
Could you possibly make a trigger for key items like you did for the Ace version?
I would like this, too! 🙂
Hi! This plugin seems to be exactly what I’m currently looking for however it seems that it doesn’t work with this plugin https://github.com/quasixi/RPG-Maker-MV/blob/master/Systems/QuasiMovement.js Do you have any idea if it is possible to fix that?
I tried putting your plugin above and below this plugin but it doesn’t work. :(.
Thanks in advance for your answer! Great work on those plugin by the way!
Thanks for the report. I have looked at the issue and have confirmed that it is a compatibility issue.
I will discuss with Quasi to see how a solution may be provided.
Is it possible to detect when an event is run into instead of just walked up to?
I know it would be possible to just detect for the run key, but that assumes the auto-dash option setting thingy is off instead of on!
Hmm, when a character is dashing, there’s a flag to check for that. I guess it could be possible to create a trigger label that activates if the event is touched while player is dashing! Though I’ll have to look at touch triggers some more.