One of the Final Fantasies (I forget which one, 10 was the last one I personally played, so I only ever saw my sister play it) had a concept of actions you could program into your off-hand characters. You had only a basic number of slots to define command to begin with, but as you progressed in level, more slots opened up and you could program more complex behaviors.