// LNR Worlds Scripts

// LNR Worlds Shop Scripts
	// Ideya Capture
on (release) {
	if (ideyas < 10) {
		if (money > 1) {
			purchases += "Ideya Capture\n";
			tempnum = ideyas;
			ideyas = "";
			ideyas = tempnum + 1;
			tempnum = "";
			money = money - 2;
		}
	}
}

// Script at Orb Lake in EXPLORE
on (keyPress "<Right>") {
    gotoAndStop (6);
}
on (keyPress "<Left>") {
    gotoAndStop (8);
}
on (keyPress "b") {
    gotoAndStop ("Battles", 1);
}
on (keyPress "i") {
    if (ideyas>0) {
        probability = random(5);
        if (probability == 1) {
            monsters += "Orb\n";
            ideyas = ideyas-1;
            gotoAndPlay ("Index", 8);
        } else if (probability != 1) {
            gotoAndPlay ("Index", 9);
        }
    }
}
on (keyPress "g") {
    if (gideya>0) {
        probability = random(2);
        if (probability == 1) {
            monsters += "Orb\n";
            gideya = gideya-1;
            gotoAndPlay ("Index", 8);
        } else if (probability != 1) {
            gotoAndPlay ("Index", 9);
        }
    }
}
on (keyPress "m") {
    if (mideya>0) {
        monsters += "Orb\n";
        mideya = mideya-1;
        gotoAndPlay ("Index", 8);
    }
}

// Script in the Illusion Cave
on (release, keyPress "<Up>") {
	locale = random(10);
	if (locale == 9) {
		gotoAndStop (5);
	}
	if (locale == 2) {
		gotoAndStop (20);
	}
}
on (release, keyPress "<Left>") {
	locale = random(10);
	if (locale == 9) {
		gotoAndStop (5);
	}
	if (locale == 2) {
		gotoAndStop (20);
	}
}
on (release, keyPress "<Down>") {
	locale = random(10);
	if (locale == 9) {
		gotoAndStop (5);
	}
	if (locale == 2) {
		gotoAndStop (20);
	}
}
on (release, keyPress "<Right>") {
	locale = random(10);
	if (locale == 9) {
		gotoAndStop (5);
	}
	if (locale == 2) {
		gotoAndStop (20);
	}
}
on (keyPress "m") {
	if (mideya>0) {
		monsters += "Myst\n";
		mideya = mideya-1;
		gotoAndPlay ("Index", 8);
	}
}

// All the above scripts are Copyright© 2002 LNR Universe