[CE_PHYS_ATT_CHANGE:STRENGTH:500:0:TOUGHNESS:200:0:START:0]
if you want to enhance stats, you use the CE tage before whatever you want to enhance. However, CE_CAN_DO_INTERACTION tends to refer to giving your spellcaster a specific spell. An example:
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Summon Raven]
[CDI:INTERACTION:CALL_RAVEN]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:1]
[CDI:VERB:gesture:gestures:NA]
[CDI:TARGET_VERB:h: disappears, and a raven appears]
[CDI:WAIT_PERIOD:100]
[INTERACTION:CALL_RAVEN]
[I_TARGET:A:CORPSE]
[IT_LOCATION:CONTEXT_ITEM]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_REQUIRES:FIT_FOR_ANIMATION]
[IT_FORBIDDEN:NOT_LIVING]
[IT_MANUAL_INPUT:corpses]
[I_EFFECT:ANIMATE]
[IE_TARGET:A]
[IE_IMMEDIATE]
[IE_ARENA_NAME:Summoned Raven]
[SYNDROME]
[CE_BODY_TRANSFORMATION:START:0]
[CE:CREATURE:RAVEN:MALE]
[CE_DISPLAY_NAME:NAME:raven:ravens:raven:START:0]
This calls a seperately programmed interaction(which i prefer to keep in the same txt file as the original spellcaster) whenever you try and cast whatever spell you've given your witch. So if you want the witch to have a Pain spell, you would want something like this:
[CE_CAN_DO_INTERACTION:START:0]
[CDI:ADV_NAME:Psionic Assault]
[CDI:INTERACTION:MINDLOCK]
[CDI:TARGET:A:LINE_OF_SIGHT]
[CDI:TARGET_RANGE:A:3]
[CDI:VERB:gesture:gestures:NA]
[CDI:TARGET_VERB:feel an excruciating pain in your head:feels an excruciating pain in their head]
[CDI:WAIT_PERIOD:400]
[INTERACTION:MINDLOCK]
[I_SOURCE:CREATURE_ACTION]
[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]
[IT_AFFECTED_CLASS:GENERAL_POISON]
[IT_MANUAL_INPUT:target]
[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_NAME:psionic assualt]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_CONTACT]
[SYN_INJECTED]
[SYN_INGESTED]
[CE_PAIN:SEV:1000000:PROB:100:BP:BY_TYPE:HEAD:ALL:START:0:PEAK:50:END:525]
That, of course, only targets a specific body part - but if you want, you can target multiple body parts with varying degrees of pain. Or all of them the same, for that matter. Hope this helped!