Hey there! I've been trying to make a skill that checks if you're standing around an object and if it's the correct location it will activate a switch.
But for some reason the script does things that seemingly defy logic. The whole script is a huge mess, I'd also love any tips to just make it simpler.
First of all the classic. A common event.

Now the mess begins.
I've made 4 different checks for the 4 possible locations around said object. They're labelled Hoch, Runter, Links and Rechts, the german translations for the 4 directions. (Up, down, left, right)

Now, why do you ask did I insert all of the weird SEs? I've used them to get some sort of a noise code indicating what the script actually does.
And this is what it gives me: Dog Dog Evasion Dog Frog Dog Frog
How on earth is Frog twice?
Also how do I make an out of combat skill that effects the environment if you're standing in special places?