public static Value GetState(params Value[] args) { String key = args[0].GetStringValue(); if (key != "" && key != null) { String state = PPather.GetToonState(key); if (state != null && state != "") { return(new Value(state)); } } return(new Value(-1)); }