Heretic86 25 Report post Posted November 28, 2013 (edited) Super Event Sensor - Event NPC AI [XP]Authors: HereticVersion: 1.0Type: Event NPC AIKey Term: Misc Add-on IntroductionThis Script is highly useful as an Artifical Intelligence by allowing you to create different "behaviors" through Event Pages. When a Sensor is "Triggered", Self Switches change automatically! Since a Sensor can detect a Target both through "Sight" and "Sound", TWO Self Switches can be specified. Due to using up half of your Self Switches, it is HIGHLY RECOMMENDED that you also grab More Self-Switches by Game_Guy / gameus as it allows for More Page Conditions.This Script not only contains Sound detection (simulated by Movement), but also features Stealth as a means to either Lessen or Completely Hide from Sensors!Features Total Overkill of Options (yeah, I think that is kind of a feature, hence SUPER) Highly Useful for Enemy AI Line of Sight to Target Different Types of Views (think Metal Gear) Obstruction of Line of Sight - WALL Can "See" Over Specified Tiles like Water for "Smarter Enemies" Triggered Settings can be Different than Non Triggered Settings Sensors can be set to Ignore Walls once triggered Uses Terrain Tags to Fix Problem Tiles like Water or Fences Should be compatible with Terrain Tag Scripts Can use Bush Tags to obstruct the View of Small Enemies Allows Terrain Tags to specify Trees that obstruct Flying Enemies View Sound - Movement makes Sound, and Movement can be Detected Sound Detection doesnt need additional scripts, just DONT MOVE! Compatible with Pathfinding Scripts Supports Suprise Attack Supported Battle Systems - XRXS Rewrite 1.03 Suprise Attack Script Calls can prevent Event from turning toward Player Can Target ANY Game_Character, not just Player Move Route Index Reset on Detrigger - Trust me, you want this. Every Event can have Different Settings The Constants in Config are used for Defaults, you can change Per Event Expandable "View" Definitions by Easy Aliasing Added Triggers for Enemy Contact with Heretic's Caterpillar Stores XY Coordinates of First Seen and First Heard for other uses. Stores XY Coordinates of Location of Sensor Event for returning to path Stealth abilities enabled by Game Switches (not Self Switches) Stealth Switches can also alter View and Range Documentation - Intended for better understanding of specific parts Demo - Extremely complex script is given Demos for each feature Screenshots Image Borrowed from Little Drago's Simple Event SensorConcept is exactly the same with way way more features! DemoThis Demo contains MANY different Scripts. A high number of the Scripts contained in this Collection Demo are designed to enhance Super Event Sensor! However, you should know that this Script can work just fine as a Standalone Script and is NOT DEPENDANT on any other Scripts!http://downloads.chaos-project.com/heretic86/CollectionOfArtAndScripts.exeScripthttp://www.775.net/~heretic/downloads/rmxp/SuperEventSensor.txtInstructionsPut above Main and below Scene_Debug (and SDK if installed)Create a Sensor by putting a COMMENT on Page 1 of an Event. It does NOT have to be at the Top of the Page, but needs to be fairly close. Also optional in the Scrit Configuration of how many lines to read while looking for Sensor_ConfigsIn the Comment, put the following:Sensor_Configrange=4listen=4listen_switch=C* The Keyword "Sensor_Config" needs to be on its OWN LINE. Do NOT put any Config Options on the same line as the Keyword of Sensor_Config!Sensor_Config range=4 WILL NOT WORK!!!* Do NOT use Spaces between your Option Name and Option Valuerange = 4 WILL NOT WORK!!!range=4 WILL WORK because there are No Spaces!!!** See Documentation and Demo for explanation of the list of Sensor Config Options. There are a LOT of them!** There are so many Options, that you can easily fill up an entire COMMENT BOX. Due to this, you can have MORE THAN ONE Sensor_Config! Each Sensor_Config needs to have Sensor_Config as the FIRST LINE.CompatibilityNot compatible with SIMPLE Event Sensor due to the nature of the Script.Should be compatible with everything else, including both major Pathfinder Scripts and the SDK.NOTE: The only supported Battle System at this time for the "Suprise Attack" feature is Heretic's Overhaul of the XRXS Battle System - Version 1.03 and above (included in that massive Demo).Credits and Thanks[li]Little Drago for the Original Concept[/li][li]Blizzard for modifying his Lagless Pathfinder to expand the functionality of this Script[/li]Author's NotesThis script is designed to Change Pages, which is where the Events Behaviors are created. Really, it is only about HALF of a true NPC AI as the other half would allow for movements referencing the Sensor's Target. Some Sensors you may actually want to Move AWAY FROM the Target, which could be based on Player Level!I have no intention of making this Script work with VX or VX Ace.Sensors can only detect ONE TARGET at this time. I will probably change this later so expect Updates!Creating any form of Artifical Intelligence is not easy, considering the semi-limited functionality of the nature of RMXP. Because this script is so complex, expect to be confused by a good number of the Options!Please ASK if you have any difficulty in getting your Sensors to work exactly as you expect them to, but do expect that they can behave exactly the way you want them to! Edited November 28, 2013 by Heretic86 Share this post Link to post Share on other sites
Polraudio 122 Report post Posted November 28, 2013 I can see many uses for this. Thanks :D 1 Heretic86 reacted to this Share this post Link to post Share on other sites
Marked 197 Report post Posted November 28, 2013 Oooh very nice. I can Tomo very good use of this script in his zombie games (i will make sure he sees this). By the way, I've been meaning to disable script submissions in this forum because the deal now is that we have a scripts section: http://www.gdunlimited.net/scripts/rpg-maker-xp It's like a topic in the sense it gets listed on the Latest Posts (so it gets as much attention as a new topic) and there's also comments for what I'm doing right now :> I'll move it in there later when I get a bit of time. Share this post Link to post Share on other sites
Heretic86 25 Report post Posted November 29, 2013 Oooh very nice. I can Tomo very good use of this script in his zombie games (i will make sure he sees this). By the way, I've been meaning to disable script submissions in this forum because the deal now is that we have a scripts section: http://www.gdunlimited.net/scripts/rpg-maker-xp It's like a topic in the sense it gets listed on the Latest Posts (so it gets as much attention as a new topic) and there's also comments for what I'm doing right now :> I'll move it in there later when I get a bit of time. Im glad at least two people now will make use of it. --- Off topic. Been gone a while breaking my back on that "Collection" I also just posted. I didnt notice the new Scripts scetion since I've been gone pretty much everywhere focusing on getting that released. If you have time, you can take ANY of the stuff I wrote in it and post it here. Battle System, MMW, everything. I need a break from RMXP in general. Just burned out. Pushed myself for too hard for too long on the content of that Collection, but then again, what do you expect when you try to use a Demo to teach people how to Script! No worries tho as I'll be back rather soon. I got permission from several other Authors for additional scripts that are included with it to be packaged into the Demo, but I didn't get permission to repost script in its raw form. Just saying this so you can do all that legal stuff and repost my stuff in Scripts. I wasnt real sure where to put a "Collection" which includes Art, Music, Tilesets, Sprites, Animations, Tutorials, and Scripts so I just posted it here. Share this post Link to post Share on other sites
CrimsonInferno 35 Report post Posted December 1, 2013 I see that sound thing to be a really good idea, especially since one of my best event plotters quit the team and made things real difficult. lol I'm having trouble understanding what else it does though, and yes I know that might make me sound real stupid. lol Share this post Link to post Share on other sites
Heretic86 25 Report post Posted December 2, 2013 Many of the concepts are very difficult concept to explain verbally. Your best bet is to download the Demo, despite its massive size, and head over to the Super Event Sensor Demo map. Start the Demo, go south through the Cave Map, down again, and down to the Timed Input Script Demo map, then head East through the Fractured Lands (Cloud Altitude Demo), then East again through the XRXS Battle System Demo map. Yeah, its a ways off, so you might wanna SAVE once you get there. Trust me. If you are having a hard time wrapping your head around the concept of Super Event Sensor, then grab the Demo as everything is explained there. It will be obvious who examines the Demo and who doesnt. Share this post Link to post Share on other sites
CrimsonInferno 35 Report post Posted December 2, 2013 Okay, will do. I'll download once I get back to my Ubuntu system . I hate downloading and installing the RPG makers on Windows, they give me errors now. lol Share this post Link to post Share on other sites