ID:272327
 
Exploit nearest corpse to animate a level 1,14,17 bone horror. Thats the description of the spell im making, how would i do something like that? Please Help
mob/verb/magics_lol()
//If a corpse is found within five blocks...
var/mob/corpse = locate(/mob/corpse) in view(src, 5)
if(corpse)
//...create a bone horror and delete the corpse.
new/mob/bone_horror(corpse.loc)
del corpse

I don't know how to handle levels, as it's your game, not mine. You should be able to figure it out from there.