beginscenarioscript;

variables;

body;

beginstate LOAD_SCEN_STATE;

	init_quest(0,"Equip Self","You need to find some gear to equip yourself or face sweaty troglodyte fury.");
	init_quest(1,"Escape","Get the fuck out of here!");
	init_quest(2,"Kill Necromancer","The evil necromancer has overstayed his welcome in this life, and it's up to you to kick him out.");
break;

beginstate START_SCEN_STATE;
break;

beginstate START_STATE;
	if(get_flag(299,29) == 1){
		message_dialog("I know a song that gets on everybody's nerves.","");
		inc_flag(299,29,1);
		end();
		}
	if(get_flag(299,29) == 2){
		message_dialog("Everybody's nerves.","");
		inc_flag(299,29,1);
		end();
		}
	if(get_flag(299,29) == 3){
		message_dialog("Everybody's nerves.","");
		inc_flag(299,29,1);
		end();
		}
	if(get_flag(299,29) == 4){
		message_dialog("I know a song that gets on everybody's nerves, and this is how it goes...","");
		set_flag(299,29,1);
		end();
		}
break;

beginstate 20; // the special
	play_sound(-3);
	message_dialog("After quaffing the special potion, you immediately keel over, retching.  It feels as though your intestines are trying to achieve escape velocity.  Suddenly, you vomit.","");
	play_sound(66);
	put_jagged_zap(char_loc_x(who_used_custom_item()),char_loc_y(who_used_custom_item()),char_loc_x(who_is_custom_item_target()),char_loc_y(who_is_custom_item_target()),3);
	put_effect_on_char(who_is_custom_item_target(),13,4,2);
	play_sound(-44);
	play_sound(-167);
	play_sound(-168);
	run_animation_sound(64);

	pause(4);

	put_effect_on_char(who_is_custom_item_target(),7,6,0);
	run_animation_sound(-42);

	kill_char(who_is_custom_item_target(),3,0);

	set_char_status(who_used_custom_item(),7,20,1,1); // disease
	set_char_status(who_used_custom_item(),0,363,1,1); // poison
break;