- Pokémon Essentials Version
- v21.1 ✅
- Also compatible with
- 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
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
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
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
Setup and Usage
Install the plugin and review the instructions at the top of 001_Script for setting up an event.
Future
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 uses:ranInto?
- Using
s:bumpedIntoCount?(x)
as a Switch as a page condition, orget_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.
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)