@LabelIndex 37352
@StringIndex 6549
class 0 royal_rush_triggerbox_1 : royal_rush_triggerbox_base {
parameter:
	string	room_event_1 = "1rd_type1_a";
	string	room_event_2 = "1rd_type2_a";
	string	room_event_3 = "1rd_type3_a";

handler:
	EventHandler TALKED(talker,i0,maker0) {
		i0 = gg::GetDateTime(0,4);
		if( i0 > 49 && i0 < 60 ) {
			myself::Say(gg::MakeFString(1010552,"","","","",""));
			return;
		}
		if( myself.i_ai0 == 1 ) {
			return;
		} else {
			myself.i_ai0 = 1;
		}
		i0 = gg::Rand(3);
		switch(i0) {
			case 0: {
				maker0 = gg::GetNpcMaker(room_event_1);
				if( gg::IsNull(maker0) == 0 ) {
					gg::SendMakerScriptEvent(maker0,1000,0,0);
					gg::SendMakerScriptEvent(maker0,1001,0,0);
				} else {
				}
				break;
			}
			case 1: {
				maker0 = gg::GetNpcMaker(room_event_2);
				if( gg::IsNull(maker0) == 0 ) {
					gg::SendMakerScriptEvent(maker0,1000,0,0);
					gg::SendMakerScriptEvent(maker0,1001,0,0);
				} else {
				}
				break;
			}
			case 2: {
				maker0 = gg::GetNpcMaker(room_event_3);
				if( gg::IsNull(maker0) == 0 ) {
					gg::SendMakerScriptEvent(maker0,1000,0,0);
					gg::SendMakerScriptEvent(maker0,1001,0,0);
				} else {
				}
				break;
			}
		}
		super;
	}

}
