#define STAT_IDLE 0 #define STAT_MOVE_TO_POINT 1 #define STAT_MOVE_ON_PATH 2 #define STAT_ON_PLAY_EVENT 3 #define PROG_START 0 #define PROG_UPDATE 1 #define PROG_END 2 #define SZS_SCRIPT_TASK_RUN 0 #define SZS_SCRIPT_TASK_STOP 1 #define SZS_SCRIPT_TASK_WAIT 2 #define SZS_SCRIPT_TASK_END 3 func chara_move_wait(int kind,int id ,int type ) { int exist_flag; int state_flag; int result_flag; exist_flag = 0; state_flag = 0; result_flag = 0; exist_flag = CharaGetProgress( kind, id, type , state_flag ); if( (exist_flag == 1) && (state_flag == PROG_END) ) { result_flag = 1; }else{ if( exist_flag == 0 ) { result_flag = 1; } } return result_flag; }