Apologies.
When I create any character event, when they are set to random movement, you can walk through them (even when they are standing still)
If they are set to fixed I can't pass through them, but when they move I can walk actually through the event.
(I dont have any recording software or I would demonstrate!)
I have Yanfly's slippery floor script.
but removed that and it still did it, removed yours and issue stopped.
I added your script back in and done the above.
I couldn't walk through the unit at first, then he moved to the left, then back to me and I could walk through him then?
I tested in my game and I don't have this issue. What does happen is the character will start to occupy the square the event was in a hair second before they move, then the event will move (probably because the character is updated before the event is). However, the event always got out of the way before I could ever 'occupy' the square, and if they didn't, I was not allowed to move into the square.
If your behavior is different than this then it is probably an incompatability between two scripts you have (both which update how events on the map are handled).
Edit: I should add I tested it in a game with Theo's anti-lag and about every Yanfly script in existence.
Little update.
Just to avoid unexpected error 'undefined method spriteset for scene'
@RaZzi: Well, dunno. I haven't tried mog
Well, Moghunters script doesn't update out-of-screen events if they are more than 3 tiles away which -if I'm correct- is the same as your "Table_Range_Search".
Moghunters script has this nice <Force Update> comment which you can add to events so those events will be forced to update. Also you can disable the script with a script call if you want to ($game_system.anti_lag = true/false). These would be awesome updates to your script.
I have a map which I use as my NPC databank. It has more than 250 events and with your script I got +10 more fps in that map. Nice work.
Free for commercial usage or only non-commercial? If not free for commercial, how much does it cost?
Plus, I have a question: so you mean the script only starts up once he detects 250 events on screen?
Try the fire one where it should animate it and then it vanishes? With your script on it should show the fire but then the fire stays on the screen as without it it shows the fire and the fire vanishes almost immediately.
How about tried yourself in Galv's Region Effect demo?
Oh, lol. Your script needs to be on top of Region Effects. What a fail. Sorry I took your time.
EDIT: Should this script be above all other scripts?