sure that sounds good but you shouldn't need a detection spell when the enemy is in LoS of the MC, it's the fact that the player is obstructed by some map elements that concerns me... ultimately it'll come down to how Tinkerer represents the attack and counter attack, if you can see the arrow coming at you from a direction and force the ranged attacker into melee simply by charging that position then all is good, my main concern is that it'll turn into a game of catch the rabbit as the archer keeps fleeing as you approach.Add a Detect Enemies spell. Maybe it could put a red lighting effect around them, or outline them in red like how ingredients are outlined in white when Doggo is with you? Not sure how easy it would be to make the lighting effect/outline move with the enemies, or even create the effect.
Enemies and critters have a detection distance that varies (wolves are longer than boars for example) and charge/flee when you get within that distance. Perhaps once the MC is within that distance ranged attack enemies start firing rather than charging?
Cheating in other wordsThe MC can already pause the game before an enemy reaches them to heal up, take potions, check the BoG, etc. with no issues. Seems to me you could pause and select an enemy to shoot even if they're charging you unless they're too close. Even equip a ranged weapon if you don't have on in hand, and probably have time to switch back to a hand weapon before they actually reach you. Again, not sure how easy setting up a ranged attack option would be.
I'm certainly not opposed to a ranged element depending on what options exist
Doggo could be excellent at chasing down Archers for example, or if you could define certain companions as shields who will try block ranged attacks from hitting the party, or your own archers who automatically try to attack enemies that come into range.
Maybe deploy your own goblin army as those kind of specialist roles to defend certain sections of the map (I'd love a chance to make that smithy mean something). Though I suspect that RPGM options might not be more sophisticated than a tower defence setup (like the lightning and fire you have to dodge at the beginning of Erevis storyline)