Enemy Events Reacting to Friendly Events

Guardinthena

Artist
Veteran
Joined
Nov 30, 2013
Messages
426
Reaction score
1,031
First Language
English
Primarily Uses
RMVXA
I am at a loss as to how to get this to work and was hoping I could get some help on this one.

I'm working on a short horror game where there is the 'Killer' Enemy Event and thirty other Friendly Events that are NPCs that the player can interact with. We are using Tsukhime's Random Event Position script here: http://www.gdunlimited.net/scripts/rpg-maker-vx-ace/system-enhancements/random-event-positions to make the Enemy and Friendly Events randomly appear on our murder mansion to simulate a living breathing atmosphere. But because of that, I need some kind of script that allows for the Enemy and Friendly events to have line of sight or detection. I wanted the Enemy Event to be able to detect if a Friendly Event is within its radius and if so, then trigger a switch that kills that Friendly Event. The Enemy Event is then supposed to take on that Friendly Event's appearance minus some minor differences. The point of the randomness is to encourage replay value.

It has been hard trying to look up something like this and the closest I keep coming is to Detection or Proximity Scripts, but that's for events to recognize the player (which I also want but that's not my problem). How can I event or script two events to acknowledge each other? I think it has to do with x and y coordinates like in detection scripts but I can't wrap my brain around how to get it to work. I had found this forum that talked about it and seems to solve it but I'm having difficulty understanding it: https://forums.rpgmakerweb.com/index.php?threads/enemy-aggro-radius.29246/

Additionally, (but I don't know if this is possible or too much), is it possible to have the Enemy Event check if there is more than one Friendly Event in his radius that he doesn't kill because it would leave witnesses? I think it would just be a conditional branch check but again, I'm at a loss beyond that as how to make this work.

Oh, almost forgot-I am avoiding using the battle system in game. I suppose this is supposed to be a action battle system kind of game without the current use of any known ABS. I don't know if I will need one.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,859
Messages
1,017,037
Members
137,566
Latest member
Fl0shVS
Top