#include "../MS_Functions.txt"

@Initialize {
}

@MainLoop {
	yield;
}

@Event {
	alternative(GetEventType())
	case(EV_GET_ITEM) {
		let itemType = GetEventArgument(0);
		alternative(itemType)
		case(1) {
		PlaySound(GetCurrentScriptDirectory ~ "../se/item.wav",255);
		}
		case(2) {
		PlaySound(GetCurrentScriptDirectory ~ "../se/item.wav",255);
		}
		case(3) {
		PlaySound(GetCurrentScriptDirectory ~ "../se/extend.wav",255);
		Extend;
		SetPlayerLife(GetPlayerLife + 1);
		}
		case(4) {
		PlaySound(GetCurrentScriptDirectory ~ "../se/item.wav",255);
		SetPlayerSpell(GetPlayerSpell + 1);
		}
	}
}