You script DOES NOT check if dest is a tree. If you wanted to list every id of tree-type then my question is: how would your script recognize the custom-made trees?
My system is GUI-friendly => CnP part into your map and customize constant function at the ton. It's so hard to replace number 5. with I don't know, meaby 100.? (the delay before tree gets recussrected, function TreeReviveDelay())
The only difference between GUI converted script and this vanila Jass is that mine isn't written in Custom scripts - as GUI-convertion (yes, I could use GUI and rewrite everything with Custom scripts, and difference wouldn't be noticeable). When you go to shop to buy an apple, and when you see the green apple and the red one, you don't say that second is a banana only because of color. The same thing goes to my system. It's as GUI-friendly as it could be, just I haven't used Custom scripts in case I don't have to.