// basin.txt
// Cell 0 - Effects of basin
// Cell 1 - modifier, defaults to 90

// effects
// 0 - bless
// 1 - haste
// 2 - shield
// 3 - essence armor
// 4 - regem
// 5 - protection aura
// 6 - invlum
// 7 - poison
// 8 - acid
// 9 - summon a group
// 10 - more energy
// 11 - less energy
// 12 - nothing
// 13 - heal
// 14 - experience
// 15 - cure death curse
// 16 - gives trinket
// 17 - increase stat

beginobjectscript;

variables;

short used = 0;
short last_abil;

body;

beginstate INIT_STATE;
	last_abil = get_current_tick();
	set_obj_act_at_dist(ME,1);
	break;

beginstate DEAD_STATE;

break;

beginstate START_STATE; 
	if ((used > 0) && (tick_difference(last_abil,get_current_tick()) > 2)) {
		print_str_color("One of the basins magically refills.",2);
		used = 0;
		set_object_icon(ME,0);
		}
break;

beginstate USE_STATE;
	if (used > 0) {
		print_str_color("Drink Water: The basin is currently empty.",2);
		end();
		}
	print_str_color("Drink Water: When you start to drink the water, a mist rises.",2);
	print_str_color("  It envelops everyone nearby.",2);
	used = 1;
	last_abil = get_current_tick();
	play_sound(114);
		run_sparkles_on_object(ME,1,1,1);
		set_object_icon(ME,1);
	status_nearby(6 - difficulty(),1,25,0);

break;