@LabelIndex 65888
@StringIndex 10286
class 0 tyranno_primeval_sp : tyranno_primeval {
parameter:
	int	mobile_type = 0;
	string	SuperPointName = "";
	int	SuperPointMethod = 2;
	int	SuperPointDesire = 50;

handler:
	EventHandler CREATED(s0) {
		super;
		if( myself::IsNullString(SuperPointName) != 1 ) {
			if( mobile_type == 1 ) {
				myself::AddMoveSuperPointDesire(SuperPointName,SuperPointMethod,SuperPointDesire);
			}
		} else if( is_dbg > 0 ) {
			s0 = "[DBG1]" + "[" + gg::IntToStr(myself.sm.class_id) + "]" + myself.sm.name + ": super point name is null";
			myself::Say(s0);
			s0 = "";
		}
	}

	EventHandler NODE_ARRIVED(script_event_arg1,script_event_arg2,script_event_arg3,s0) {
		if( is_dbg > 2 ) {
			s0 = "[DBG3]" + "[" + gg::IntToStr(myself.sm.class_id) + "]" + myself.sm.name + ": node_arrived";
			myself::Say(s0);
			s0 = "";
		}
		if( script_event_arg3 > -1 && mobile_type == 1 ) {
			if( myself.p_state != 3 && myself.p_state != 10 ) {
				if( is_dbg > 1 ) {
					s0 = "[DBG2]" + "[" + gg::IntToStr(myself.sm.class_id) + "]" + myself.sm.name + ": play social" + "[" + gg::IntToStr(script_event_arg3) + "]";
					myself::Say(s0);
					s0 = "";
				}
				myself::AddEffectActionDesire(myself.sm,script_event_arg3,10,10000000);
			}
		}
		if( myself::IsNullString(SuperPointName) != 1 ) {
			if( mobile_type == 1 ) {
				myself::AddMoveSuperPointDesire(SuperPointName,SuperPointMethod,SuperPointDesire);
			}
		}
	}

}
