Author Topic: [XP] Simple Event Ai  (Read 7362 times)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
[XP] Simple Event Ai
« on: March 04, 2010, 02:08:00 AM »
Simple Event Ai
Authors: Nathmatt
Version: 1.16
Type: Add-on
Key Term: Misc Add-on

Introduction
Makes events chase you when you get within range.
If the event gets to far from original location return to original location,
allows events to run from you, and when events see you turns on a configurable switch

Features

  • all configurations are done in events name

Screenshots
no screen shot needed

Demo
will add when i can make an actual demo

Script
(click to show/hide)

Instructions
just name ur event  \p[array] where array is add array of ranges
(example \p[5,7] would be when your distance is 5 from them they chase you and when they get 7 distance from there original location they run back
if you want them to run from you name them \r[range] range is how close you get before they start running from you
/v[range,switch_id] range is the events cant see you switch_id is the id of the switch that turns on when the event
sees you
\c[range,target] event will chase the target when within range
target is either 0 for player or event_id

Compatibility
no compatible issues known

Credits and Thanks

  • Nathmatt
  • Blizzard for his check event name
  • Game_Guy For the events run from you

Author's Notes
no notes
« Last Edit: April 18, 2012, 11:43:42 PM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: Simple Event Ai
« Reply #1 on: March 05, 2010, 01:55:54 AM »
changed update to 1.1 now no need to do anything to the event but name it \p[array] array being the array of ranges you want it to use
update 1.11 small bug fix
update 1.12 added option to turn off the battle call (removed)
update 1.13 added \r[range] to have events run from you
update 1.14 added \v[range,switch] to have events turn on a switch when they see you
« Last Edit: March 05, 2010, 07:42:19 PM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3255
  • LV: 298
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Simple Event Ai
« Reply #2 on: March 18, 2010, 12:49:41 AM »
Good job. I was doing this through eventing and it was a pain in the ass.
This should make things easier.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline nathmatt

  • Chaos User
  • ******
  • Posts: 1289
  • LV: 114
  • Gender: Male
  • The Add_on King
    • View Profile
    • Nathmatt Productions
Re: [XP] Simple Event Ai
« Reply #3 on: May 30, 2010, 03:33:11 AM »
update 1.15 script has been revamped
update 1.16 fixed how original movement and Ai_movement are processed
« Last Edit: April 18, 2012, 11:39:37 PM by nathmatt »
Join Dead Frontier
Sorry, I will no longer be scripting for RMXP. I may or may not give support for my scripts. I don't have the will to script in RGSS anymore.
My script
(click to show/hide)