This is easy to do go to your editor and click on abilities and find a spell called spell book. U can add spells to this and give it to a unit. And when that units uses it it opons up a new with the spell u had programed. I am at school right now but if u can't find it reply and tell me and i will tell exact what to do ok.