legion script