tree scrip

changes of tree attack, code still missing