The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: vgmaster2.0 on March 28, 2014, 02:02:51 AM

Title: [XP] [Question] Prevent events from turning toward player without direction fix
Post by: vgmaster2.0 on March 28, 2014, 02:02:51 AM
Hello all.
I have an event used for battle encounters that triggers via "Event Touch".
However, I wish for this event to not turn towards the player upon being triggered.
I want to do this without enabling Direction Fix since the event is supposed to randomly wander around until the player touches it.
However, I do not wish for this to occur for all events, only specified events.  (I plan to use "if !event.name.include?(""))
What do I need to edit in the default scripts to accomplish this?

Thanks.
Title: Re: [XP] [Question] Prevent events from turning toward player without direction fix
Post by: Heretic86 on April 15, 2014, 11:26:44 PM
Ive written a script that accomplishes this and much more.

http://downloads.chaos-project.com/heretic86/CollectionOfArtAndScripts.exe

Its a big tech demo, dig through it until you find "Super Event Sensor".  You should find that enemy events, when touched by the player, do not turn toward you when triggered.  This should help you to maintain the style of gameplay you are looking for, where enemies are viewable to the player on the map, and have a bit of "intelligence".

Explanation of Collection Tech Demo:
http://forum.chaos-project.com/index.php/topic,13682.0.html