Well, you can only have a total of 32 ghosted enemies at one time. (Less if you're using ffcs for some other reason as well)
8,9,23, and 24 seem unnecessary. 8 and 9 are saving the position, and then 23 and 24 are restoring it, but nothing inbetween is actually affecting the position at all.
11 and 12 are saving Link's collision box size, and then 13 and 14 are changing it to 15x15. 19 and 20 are changing the size back to what 11 and 12 saved it as. So it's temporarily changing Link's collision box, testing to see if the likelike is touching link with that changed box (17 & 18), and then changes it back.
(As an aside, I'm not sure if you can actually change Link's collision box like that, as far as the engine is concerned, it might not do anything. The LinkCollision function that the script is using apparently takes it into account, though, even if the engine doesn't.)
Edited by grayswandir, 13 July 2016 - 07:32 PM.