If c_scan is used with the enemy to detect a something (ENTITY) nearby, than an event might be fired, and inside that event the "you" pointer might be set to that nearby thing (ENTITY). Skills of that "you" pointer might be evaluated.
Thanks for the answers. What I'm wondering about this though, is what sort of code should I use to check if "you" has a certain skill set to a certain number? Like I said, I used if(you.skill22 == 1){ but that crashed the enemy action. Is there some other way I check for the skill, or am I just typing something incorrectly?