private int fnIdle(SwordObject cpt, int id, int c, int d, int e, int f, int z, int x) { cpt.tree.script_level = 0; // force to level 0 cpt.logic = LOGIC_idle; return SCRIPT_STOP; }