Еще очень пугают подобные конструкции if Distance==Speed then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*5 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*10 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*15 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*20 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*25 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*30 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*35 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif
if Distance==Speed*40 then
call DestroyEffect(AddSpecialEffect(e,x,y))
endif