This is confusing when considering it's a random spawing event based on random variables that then uses self switches for sensor vision reaction and arrow hit detection. I have to post the whole event sequence in the help section.
I can think of a way to implement it but it will never be part of this script.
It would be implemented as a separate script.
Ok, I made a post in the Script Support section but I suppose i should have posted here from the start.
I am trying to make a key binding that makes an on map attack. That all works but when it comes to the event_touch_event trigger I am having an issue.
I set the event I am using for the base of the attack mechanics (animation, etc...) to be the only event that can trigger the enemies on the map to be erased when they touch it.
It works. However, the event is triggered even when the player touches it as well. I did not include -1 in the list of triggers so I am wondering what has gone wrong?
To my knowledge, none of the other scripts I have are interfering with this. I only have Yanfly's Common Event Buttons, Galv's Jump and Visibility Range scripts and yours.
Just to make sure I have this setup correctly. The attack event is #27. The enemy event is set with the comment and it reads:
<page trigger: event_to_event 27>
In theory, this should make it to where only event #27 can trigger it upon touch, correct?
I need some feedback from someone to help me resolve this. I'm at the point in my game that I need to get the combat working before I can work on much of anything else.
Thanks in advance.
It was a bug I have updated the script to address the issue.
There was a bug with the "event to event" trigger.
The trigger was modeled after the "player touch" trigger, which means it is one-way, so you don't need two separate types of page triggers just to specify which events can trigger what.
This is how the trigger works: you specify which events can trigger THIS event.
If EV1 has the following tag:
<page trigger: event_to_event 2 3>That means only EV2 and EV3 can trigger EV1.If you tag EV2 with this:
<page trigger: event_to_event 1>This means that only EV1 can trigger EV2.However the bug here is that if EV2 runs into EV1, only EV1 is triggered, whereas you would probably expect both events to be triggered simply because they trigger each other, and they're touching each other.