• 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.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
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)
  • Like
Reactions: PurpleZaffre
Author
wrigty12
Downloads
8
Views
133
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from wrigty12

Back
Top