item script Mystery {
// Add items like this to 1 less than the number you want. So if you want 5 possible items, add
// ", int item3, int item4" in there.
void run(int item0, int item1, int item2) {
// Pick item id.
int index = Rand(3); // Set to 1 more than the number of items.
int itemId;
// Copy these lines and change the numbers to add more possible items.
if (index == 0) {itemId = item0;}
if (index == 1) {itemId = item1;}
if (index == 2) {itemId = item2;}
// Give to Link.
ForceHeldItem = itemId;
CreateItemAt(itemId, Link->X, Link->Y);}}