• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

v21.1 Bump Into Event Trigger 1.0

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
Also compatible with
  1. v20.1
Usually when you run into an NPC, nothing unique happens compared to when you talk to them normally. Now, you can add a condition to check if the player bumped into the NPC so you can make something different happen.

Features
  • NOTE: For all features listed below, it is recommended that you use Player Touch or Event Touch as the trigger for the event pages.
  • Using s:bumpedInto? as a Switch, checking if the player bumps into the event can be used as a page condition.
  • Using s:bumpedInto(x)? as a Switch, checking if the player bumps into the event at at least "x" speed can be used as a page condition. Running is speed 4, and cycling is speed 5. Alternatively, you can use s:ranInto?
  • Using s:bumpedIntoCount?(x) as a Switch as a page condition, or get_self.bumpedIntoCount?(x) in a Conditional Branch, you can also make something different happen after the player runs into the event "x" number of times.
Examples
Let's say you want an NPC to get mad at the player if they bump into them. You would create a event page with s:bumpedInto? as a Switch condition, make the page have a trigger of Player Touch, and include dialogue unique to that situation.

If you want them to get even more angry if the player keeps bumping into them over 3 times, create another event page with both s:bumpedInto? and s:bumpedIntoCount?(3) as Switch conditions and really let the NPC let the player have it.

Maybe you want the NPC to get "injured" if the player is running or cycling and bumps into them. In that case, create another event page with s:ranInto? as a Switch condition, and do something unique for that situation.

Setup and Usage
Install the plugin and review the instructions at the top of 001_Script for setting up an event.

Future
  • I have no plans (besides obvious bug fixes)
Credits
wrigty12
Swdfm (for coming up with the initial starting point for this code)
Author
wrigty12
Downloads
257
Views
955
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from wrigty12

Latest reviews

Besides the fact that I probably will never be using the recourse since I'm not working on a fan game myself, I'm just giving you 5 stars because I really like the idea alone :D Keep it up, I like your plugin ideas!
Back
Top