Not likely the best way, but you could probably do something like this:
Code:
while (1)
{
if (vec_dist(nonmovingentity.x, player.x) > limit)
{
wait(1); // if non-moving entity is further than limit quants from player, wait
}
else
{
// stuff here for displaying text about the nonmovingentity entity
}
}
The "limit" variable is how close you can be at the most to activating the condition.