Appended some scripts for achievement

Appended some scripts for achievement and some functions of materials
changing