Let me try to clarify:
Spellcaster enemies prioritize using their magical abilities first; once they've run out of spells, they switch to standard attacks. When an enemy has multiple spells, you can either pick a spell for them to cast or randomize the choice. Although the game offers the option to test whether enemies successfully cast their spells using the same mechanic as PCs, this is optional. Skipping the roll simplifies gameplay but may make encounters harder, as enemies will always succeed in casting their spells in this case.
Regarding attacks at a distance, there is no distinction between ranged and close combat, as there is no character positioning. Therefore, if your character has a dagger, nothing prevents them from throwing it at an enemy. However, you might consider the following rule: enemies hit by ranged weapons/attacks must close the distance to their attacker before counterattacking, whereas enemies hit by melee weapons/attacks can counterattack immediately. If you're looking for a way to manage distance for ranged attacks, you can find an alternative here: https://rpggeek.com/thread/3322501/questions-about-ranged-attacks-defense-healing-etc
Thank you for your support!