Events will not trigger when player is more than 20 tiles away

Hey guys, I've ran into a problem in which my parallel events will not trigger if the player is more than 20 tiles away from it. Does anyone know what I can do to increase the maximum number of tiles in which an event can be activated from?
OK, there are two different points here.

First, autonomous movement (not parallal processes) should stop at a distance because having all those movements going over a large map will cause lag on most computers if there are too many events.

Second, actual parallel processes that do some control on the map should be excempted from that, they should work everywhere (or it would cause other problems on large maps.


So either you've mixed up terminology and are asking about autonomous movement, or you have some plugins that changed the behaviour of the engine, or the critical parallel process is not stopped by distance as you assume but by something else (usually a logic error somewhere).

we need more data before we can even guess which of the three cases this is, perhaps a screenshot of the event pages of one such event that doesn't work as you expect.
JavaScript:
Game_Event.prototype.isNearThePlayer = function() {
    var sx = Math.abs(this.deltaXFrom($gamePlayer.x));
    var sy = Math.abs(this.deltaYFrom($gamePlayer.y));
    return sx + sy < 20;
};

This could be your culprit. The distance thing is by design to avoid lag from updating events that don't need to be updated; you can put in something higher than 20 if you want to increase the range, but be aware that this may start causing FPS drops if you have a lot of events.

As Andar said though, that shouldn't affect parallel processes.
JavaScript:
Game_Event.prototype.isNearThePlayer = function() {
    var sx = Math.abs(this.deltaXFrom($gamePlayer.x));
    var sy = Math.abs(this.deltaYFrom($gamePlayer.y));
    return sx + sy < 20;
};

There's your culprit there. The distance thing is by design to avoid lag from updating events that don't need to be updated; you can put in something higher than 20 if you want to increase the range, but be aware that this may start causing FPS drops if you have a lot of events.
Hey so I changed the number to something larger (ie : return sx + sy < 40) and it still doesn't make a difference. Do you know why?
That probably isn't what's causing your issue then. It's likely a plugin that does this for "efficiency"; what plugins are you using?

What exactly is in the parallel process events that's not happening when you're more than 20 away?
That probably isn't what's causing your issue then. It's likely a plugin that does this for "efficiency"; what plugins are you using?

What exactly is in the parallel process events that's not happening when you're more than 20 away?
Hey so below I included a screenshot of the plugins I'm using. Also, the parallel process is an enemy using an active battle system (Alpha ABS). The enemy is supposed to move directly to the player upon being spawned. I'll include screenshots of the enemy and the event below. It seems the problem must be with my active battle system because when I turn it off, the problem goes away and the enemy can approach me from further than 20 tiles. I've tried looking through the plugins code to see if I can find anything restricting the event from moving 20 tiles but I've had no luck.

1.png

2.png

3.png
Hey so below I included a screenshot of the plugins I'm using. Also, the parallel process is an enemy using an active battle system (Alpha ABS). The enemy is supposed to move directly to the player upon being spawned. I'll include screenshots of the enemy and the event below.

View attachment 190854
View attachment 190855
View attachment 190856
Yeah, it's likely something in the function that updates those spawned events.
Why is that event a parallel process at all? it has no content, so it should not be a parallel process.
autonomous movement is called autonomous because it is independent of the trigger.

Why do you have yanfly's battleengine AND an ABS script?
The purpose of ABS scripts is to remove the battlescreen, and yanfly's battleengine is nothing but an alternative battlescreen. I strongly doubt that those two plugins are compatible
This is from Yanfly's MoveRouteCore plugin:
Event Notetags:

<Always Update Movement>
- Most events don't update unless they're close to the screen. But any
event with this notetag will always be updating regardless of whether they
are close to the screen or not.
Yeah, it's likely something in the function that updates those spawned events.
Ya unfortunately it definitely seems to be the problem. I'm trying to find where in the script it caps the distance at 20 with no luck so far. Lmk if your interested in making some money, because if you can help me fix the script to allow for what I want to do I would pay you for your time! Anyways, thanks for all the other help and quick replies!
Why is that event a parallel process at all? it has no content, so it should not be a parallel process.
autonomous movement is called autonomous because it is independent of the trigger.

Why do you have yanfly's battleengine AND an ABS script?
The purpose of ABS scripts is to remove the battlescreen, and yanfly's battleengine is nothing but an alternative battlescreen. I strongly doubt that those two plugins are compatible
i did not know that, thank you
I did not know that, thank you
Ya unfortunately it definitely seems to be the problem. I'm trying to find where in the script it caps the distance at 20 with no luck so far. Lmk if your interested in making some money, because if you can help me fix the script to allow for what I want to do I would pay you for your time! Anyways, thanks for all the other help and quick replies!
I'm always interested in making money, but sounds like HankB's suggestion will probably work for you. 😛
This is from Yanfly's MoveRouteCore plugin:
Event Notetags:

<Always Update Movement>
- Most events don't update unless they're close to the screen. But any
event with this notetag will always be updating regardless of whether they
are close to the screen or not.
hmm, unfortunately implementing this still doesn't make it work. thank you though
I'm always interested in making money, but sounds like HankB's suggestion will probably work for you. 😛
unfortunately, hanks suggestion does not work 🙁 I'll include a screenshot of my event with the notetag in it (the plugin is added to the game)

4.png
From what I can tell, some of your Yanfly plugins are not in the right order. They need to be in the order that they are on this page:

Why is that event a parallel process at all? it has no content, so it should not be a parallel process.
autonomous movement is called autonomous because it is independent of the trigger.

Why do you have yanfly's battleengine AND an ABS script?
The purpose of ABS scripts is to remove the battlescreen, and yanfly's battleengine is nothing but an alternative battlescreen. I strongly doubt that those two plugins are compatible
battleengine core is a required plugin for tickbasedregen, which is a plugin I am using
From what I can tell, some of your Yanfly plugins are not in the right order. They need to be in the order that they are on this page:

Here is the current order of my plugins, which ones are out of place? I thought this is the correct order

1.png
  1. Core Engine
  2. Core Engine Extension: Core Updates and Desktop Optimization
  3. Advanced Switches & Variables
  4. Base Parameter Control
  5. Base Parameter Control Extension: Class Base Parameters
  6. Class Change Core
  7. Class Change Core Extension: Subclass
  8. Extra Parameter Formula
  9. Load Custom Fonts
  10. Main Menu Manager
  11. Main Menu Manager Extension: Main Menu Actor Events
  12. Message Core
  13. Message Core Extension: Extended Message Pack 1
  14. Message Core Extension: Extended Message Pack 2
  15. Message Core Extension: Message Backlog
  16. Message Core Extension: Message Eval Text
  17. Message Core Extension: Message Macros
  18. Message Core Extension: Message Speed Option
  19. Plugin Commands - Switches & Variables Access
  20. Save Core
  21. Save Core Extension: Autosave
  22. Save Core Extension: New Game+
  23. Self Switches & Variables
  24. Special Parameter Formula
  25. Battle Engine Core
  26. Battle Engine Core Extension: Action Sequence Pack 1
  27. Battle Engine Core Extension: Action Sequence Pack 2
  28. Battle Engine Core Extension: Action Sequence Pack 3
  29. Battle Engine Core Extension: Animated Sideview Enemies
  30. Battle Engine Core Extension: Battle System - ATB
  31. Battle Engine Core and Battle System - ATB Extension: Visual ATB Gauge
  32. Battle Engine Core Extension: Battle System - CTB
  33. Battle Engine Core Extension: Battle System - STB
  34. Battle Engine Core Extension: Counter Control
  35. Battle Engine Core Extension: In-Battle Status
  36. Battle Engine Core Extension: Turn Order Display
  37. Battle Engine Core Extension: Visual HP Gauges
  38. Battle Engine Core Extension: Weak Enemy Poses
  39. Battle Engine Core Extension: Lunatic Pack - Action Beginning and End Effects
  40. Absorption Barrier
  41. Battle A.I. Core
  42. Battle A.I. Core Extension: Actor Auto Battle A.I.
  43. Battle BGM Control
  44. Battle Select Cursor
  45. Battle Status Window
  46. Buffs & States Core
  47. Buffs & States Core Extension: Extended Damage Over Time
  48. Buffs & States Core Extension: State Categories
  49. Buffs & States Core Extension: Tick-Based Regen
  50. Buffs & States Core Extension: Visual State Effects
  51. Buffs & States Core Extension: Lunatic Pack - State Protection
  52. Damage Core
  53. Damage Core Extension: Armor Scaling
  54. Damage Core Extension: Critical Control
  55. Damage Core Extension: Lunatic Pack - Critical Sway
  56. Element Core
  57. Extra Enemy Drops
  58. Force Advantage
  59. Hit Accuracy
  60. Hit Damage Sounds
  61. Improved Battlebacks
  62. Level Up Growth Effects
  63. Life Steal
  64. Overkill Bonus
  65. Target Core
  66. Target Core Extension: Area of Effect
  67. Target Core Extension: Selection Control
  68. Taunt
  69. Victory Aftermath
  70. Victory Aftermath Extension: Aftermath Level Up
  71. Weather In Battle
  72. Item Core
  73. Item Core Extension: Attachable Augments
  74. Item Core Extension: Item Disassemble
  75. Item Core Extension: Item Discard
  76. Item Core Extension: Item Durability
  77. Item Core Extension: Item Menu Categories
  78. Item Core Extension: Item Picture Images
  79. Item Core Extension: Item Rename
  80. Item Core Extension: Item Requirements
  81. Item Core Extension: Item Upgrade Slots
  82. Item Synthesis
  83. Shop Menu Core
  84. Shop Menu Core Extension: Conditional Shop Prices
  85. Shop Menu Core Extension: Hide/Show Shop Items
  86. Shop Menu Core Extension: More Currencies
  87. Skill Core
  88. Skill Core Extension: Limited Skill Uses
  89. Skill Core Extension: Multi-Type Skills
  90. Skill Core Extension: Party Limit Gauge
  91. Skill Core Extension: Skill Cooldowns
  92. Skill Core Extension: Skill Cost Items
  93. Skill Core Extension: Lunatic Pack - Skill Rewards
  94. Instant Cast
  95. Skill Learn System
  96. Skill Mastery Levels
  97. Equip Core
  98. Equip Core Extension: Change Battle Equip
  99. Equip Core Extension: Equip Customize Command
  100. Equip Core Extension: Equip Requirements
  101. Weapon Animation
  102. Weapon Unleash
  103. Status Menu Core
  104. Status Menu Core Extension: Actor Variables
  105. Status Menu Core Extension: Battle Statistics
  106. Status Menu Core Extension: More Status Menu Pages
  107. Status Menu Core Extension: Profile Status Page
  108. Auto Passive States
  109. Auto Passive States Extension: Passive Aura Effects
  110. Auto Passive States Extension: Lunatic Pack - Passive Condition Cases
  111. Enemy Levels
  112. Enemy Levels Extension: Difficulty Slider
  113. Enemy Levels Extension: Enemy Base Parameters
  114. Enemy Levels Extension: Map Enemy Levels
  115. Enhanced TP
  116. Enhanced TP Extension: More TP Modes
  117. Equip Battle Skills
  118. Equip Battle Skills Extension: Allowed Types
  119. Equip Battle Skills Extension: Equip Skill Tiers
  120. Job Points
  121. Party System
  122. Party System Extension: Actor Party Switch
  123. Repel & Lure Encounters
  124. Row Formation
  125. Stat Allocation
  126. Steal & Snatch
  127. Move Route Core
  128. Move Route Core Extension: Extended Move Pack 1
  129. Floor Damage
  130. Quest Journal System
  131. Quest Journal System Extension: Map Quest Window
  132. Quest Journal System Extension: More Quests
  133. Options Core
  134. Animated Tile Option
  135. Battle Animation Speed Options
  136. FPS Synch Option
  137. Event Chase Player
  138. Event Chase Player Extension: Event Chase Stealth
  139. Event Click Trigger
  140. Event Copier
  141. Event Encounter Aid
  142. Event Hitbox Resize
  143. Event Mini Label
  144. Event Morpher
  145. Event Proximity Activate
  146. Event Region Trigger
  147. Event Spawner
  148. Event Sprite Offset
  149. Event Step Animation Options
  150. Event Timer Control
  151. Icons on Events
  152. Auto Switches
  153. Base Troop Events
  154. Button Common Events
  155. Call Event
  156. Common Event Menu
  157. Common Event Menu Extension: Common Event Menu Setup Pack 1
  158. Common Event Menu Extension: Common Event Menu Setup Pack 2
  159. Credits Page
  160. Dash Toggle
  161. Disable Auto Shadow Extended
  162. Dynamic Title Images
  163. External Links
  164. Footstep Sounds
  165. Gab Window
  166. Grid-Free Doodads
  167. Grid-Free Doodads Extension: Extended Doodad Pack 1
  168. Help File Access
  169. Icon Balloons
  170. Key Name Entry
  171. Key Number Input
  172. Keyboard Config
  173. Main Menu Variable Window
  174. Map Gold Window
  175. Map Select Equip
  176. Map Select Skill
  177. Map Status Window
  178. Merge Common Events
  179. Music Menu
  180. Optimize Script Calls
  181. Patch Notes
  182. Picture Common Events
  183. Picture Spritesheets
  184. Region Battlebacks
  185. Region Events
  186. Region Restrictions
  187. Region Restrictions Extension: Vehicle Restrictions
  188. Save Event Locations
  189. Scale Sprites
  190. Script Call Plugin Commands
  191. Sectioned Gauges
  192. Segmented Gauges
  193. Slippery Tiles
  194. Smart Jump
  195. Stop Map Movement
  196. Swap Enemies
  197. Test Play Assist
  198. Touch Input Disabler
  199. Utility Common Events
  200. Dragonbones Integration

Original thread: https://forums.rpgmakerweb.com/threads/events-will-not-trigger-when-player-is-more-than-20-tiles-away.136996/