Hmm. If stun_skill is an array, organized by class ID, then this little construct ought to work: skill[stun_skill[my_class()]]. Or maybe I'm thinking of ASH.
If that was in ash it would throw three different run-time errors since stun_skill() is a function in ash that returns the correct skill for the current class.
True. I'll try to write that up in the morning when I can do it more clearly. Just didn't want to write up a FReq if it had already been added and I just missed it in the sea of new-class-stun changes.
For the sake of anyone who searches for the topic in the future and discovers this thread I will post that your feature request resulted in a new CCS command, stun.