wrote the evalScript definitions for SetStat and Modstat