I placed execute() to avoid big case switch(100 cases) (if (Skillnum==1){retval=entity.skill1} else {if(...). About slow, If somone needs 200 skills, TRY IT and report FPS (script time)