[RMVXAce]Is it possible to change the sensory range of an enemy in script call

Is there a way that I could change the sensory range of an enemy in XAS (Xiderowg Action System) through

a script call rather than a note tag. What I'm tryring to do is when a player enter the sensory range of an enemy it would automatically change its original sensory range. Look at my example to better understand my question.

Example:

Spoiler
Slime with a sensory range of 4. (so if the player is within 4 tiles  from the slime the self switch d(this is its default) will activate which has the actions of how the slime will react.) If player moves out of the sensory range of the enemy, then then enemy wont react or wont move at all. What i'm trying to do is when the player enters the  sensory range of the enemy, which is 4, a script would call changing the sensory range of the slime to 10. That way  the slime will continue to chase you. It would be simpler if i just make the slime's sensory range to 10 in the notes section , but I was wondering if there was a way to call it through script. 🙂
I hope is not too much to ask 🙂
 

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

Original thread: https://forums.rpgmakerweb.com/threads/rmvxace-is-it-possible-to-change-the-sensory-range-of-an-enemy-in-script-call.15465/