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

Gif example using a custom animation:
Spoiler: ShowHide
(https://media.discordapp.net/attachments/176908786253037568/496507158222077960/nut.gif)


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. I figured I'd make a contribution back to Chaos Project since this community has been so helpful in my game's development. Hopefully this script treats someone else just as well!

Credit for this script isn't required, but greatly appreciated, with the exception of redistribution. If you post this script elsewhere, please link back to this original post.
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 :)