so far we dont have a topic for magic so i decided i'd start this one
1st of all ill make a suggestion for how magic works.
Basicly you have a Energy bar and you type to cast spells when you type the spell you get a single use spell item {using the item picking up script so you dont keep the item for ever} and it decreases the Energy bar {or energy points} and if you cast a spell when you have no energy you lose health instead. upping your strength increases your energy limit and you can only use a spell if you have been trained in the use of it. each spell uses a different amount of energy and some will obviously kill you if you dont have enough strength/energy/health. Hopfully this helps and will work.
edit:Some vilages/towns/castles will have spellcasters that will teach you these spells.
if you become a rider you will be trained in the use of more powerful spells, if you are an elf you will be trained in the use of magic at the start. urgals cannot/willnot be able to use magic