Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: Jaiden on October 01, 2018, 11:14:56 pm

Title: [XP] "Inspect" Event Animation
Post by: Jaiden on October 01, 2018, 11:14:56 pm
"Inspect" Event Animation
Authors: Jaiden, KK20
Version: 2.0
Type: Event Feature
Key Term: Environment Add-on

Introduction

Do you want to indicate that an event can be interacted with using a nifty animation? This is the script for you! Similar to how most games have some sort of a "press to interact" indicator, this script displays an animation when the player is facing events you've marked for "inspection".

Features


Screenshots

(N/A)

Demo

(N/A)

Script
Hosted on Github (https://github.com/JaidenAlemni/rmxp-scripts/blob/main/Credit%20Required/Special%20Permissions/InspectEvents.rb)


Instructions

Instructions are in the script, but it is as simple as putting a comment with "\inspect_event" in the event page you want the animation to display on. Note that the default animation used, "EM Exclamation" plays a sound every time it is looped. I suggest creating a new, silent animation and setting its ID in the configuration.

Compatibility

This script aliases the Game_Map, Game_Event, Game_Character and Sprite_Character classes. This will not be compatible with any scripts that heavily re-write those classes.

Credits and Thanks


Author's Notes

This is my first script, so be aware of that if you decide to use it. Honestly, Fz0's Event Proximity is probably a much, MUCH better version of this feature.

If you decide to use it, credit isn't required.
Title: Re: [XP] "Inspect" Event Animation
Post by: Jaiden on October 02, 2018, 11:08:10 am
Updated to v1.1; fixed a bug where the map wasn't refreshing correctly and the animation wouldn't always display.
Title: Re: [XP] "Inspect" Event Animation
Post by: Blizzard on October 03, 2018, 03:04:27 pm
Now you're a real scripter. First you had to fix your own broken code, it's kind of a ritual. >_>
Title: Re: [XP] "Inspect" Event Animation
Post by: Jaiden on March 19, 2019, 10:29:14 pm
Updated to v2.0
Now you can specify what directions the animation displays! Also, KK20 fixed all the bugs and bad logic :)