// SCENARIO SCRIPT

// This is the special script for your entire scenario. It contains
// special encounters and code accessable from anywhere in the scenario. it also
// contains the code that initializes important special things in the
// scenario (like shops and names and descriptions of special items).

// You can create your own states, but you should give all of them numbers greater than
// or equal to 10.

beginscenarioscript;

variables;

body;

// This is the state that is called every time the scenario is loaded,
// even when a save file in the scenario is loaded. Some things that should go here:
//    Names and descriptions of special items.
//    Names and effects of custom special abilities.
beginstate LOAD_SCEN_STATE;
	// init_quest(which_quest,"quest name","quest description");
	// init_special_item(which_item,"item name","item description");
	init_special_item(1,"Vial of vicious goo","Warren asked you to fetch a vial of acid from a special pool underneath the Fire Temple. After a vicious battle with the liquid, you were able to take some of it in a vial.");
	init_quest(1,"Missing caretaker","The caretaker of Megiddo tower has gone missing. Captain Hobbes will pay 100 coins if you can find the body. But he probably won't be too worried if you don't find anything.");
	init_quest(2,"Spooky woods monster","Cynthia says that the Megiddo soldiers have been scared by some _monster_ in the northwestern Megiddo woods. You are to take Deadeye and investigate further.");
	init_quest(3,"Scout the Hunan position","General Seth has tasked you with scouting the Hunan forces. He wants to know approximately how many there are, and how they are armed. You are to go northeast of the castle and past the Megiddo-Hunan border.");
	init_quest(4,"Fetch fangs for Warren","Warren is an alchemist in the Megiddo University. He has asked you to bring him back fangs from the giant spiders and bats that live under the Fire Temple.");
	init_quest(5,"Fetch acid for Warren","Warren is an alchemist in the Megiddo University. He has asked you to bring him a sample of acid from a pool that is said to be at the bottom of a cavern, itself underneath the Fire Temple.");
	init_quest(6,"Eliminate Lady Keria","Lady Keria has betrayed Megiddo, by trying to instigate an attack upon the nation. She must be brought to justice; a good place to start would be the Megiddo Tower.");
	init_quest(7,"Fetch paper for Manucher","Manucher is a foreign entrepreneur to Megiddo who buys paper cheaply and exports it. He would like as much as you can get your hands on... legally or not.");
	init_quest(8,"Report back to General Seth","Lady Keria is dead, and you have a lot to tell him. You should go see General Seth in Megiddo Tower as soon as possible.");
	break;

// This is the state that is called only once at the very beginning of 
// the scenario. Some things that should go here:
//    The stuff in shops.
//    Creating horses and boats.
beginstate START_SCEN_STATE;
	// Initialize a few shops.
	
	// Shop 0 - armor
	add_item_to_shop(0,25,25);
	add_item_to_shop(0,26,20);
	add_item_to_shop(0,30,20);
	add_item_to_shop(0,31,10);
	add_item_to_shop(0,35,10);
	add_item_to_shop(0,121,15);
	add_item_to_shop(0,122,15);
	add_item_to_shop(0,126,3);
	add_item_to_shop(0,131,2);
	add_item_to_shop(0,111,15);
	add_item_to_shop(0,16,10);
	add_item_to_shop(0,136,10);
	add_item_to_shop(0,137,10);
	add_item_to_shop(0,141,5);
	
	// Shop 1 - weapons
	add_item_to_shop(1,45,25);
	add_item_to_shop(1,46,20);
	add_item_to_shop(1,50,15);
	add_item_to_shop(1,51,10);
	add_item_to_shop(1,55,5);
	add_item_to_shop(1,65,20);
	add_item_to_shop(1,66,10);
	add_item_to_shop(1,70,5);
	
	// Shop 2 - tools
	add_item_to_shop(2,170,500);
	add_item_to_shop(2,171,500);
	add_item_to_shop(2,172,30);
	add_item_to_shop(2,174,500);
	add_item_to_shop(2,177,500);
	
	// Shop 3 - missiles
	add_item_to_shop(3,85,500);
	add_item_to_shop(3,86,10);
	add_item_to_shop(3,90,10);
	add_item_to_shop(3,95,3);
	add_item_to_shop(3,100,20);
	add_item_to_shop(3,101,10);
	add_item_to_shop(3,105,10);

	// Shop 4 - potions
	add_item_to_shop(4,220,4);
	add_item_to_shop(4,221,3);
	add_item_to_shop(4,222,3);
	add_item_to_shop(4,223,2);

	// Shop 5 - food
	add_item_to_shop(5,4,500);
	add_item_to_shop(5,6,500);
	add_item_to_shop(5,7,500);

	//Shop 6 - Marissa's bakery
	add_item_to_shop(6,4,500);
	add_item_to_shop(6,8,500);
	add_item_to_shop(6,12,500);

	//Shop 7 - Goldsmith
	add_item_to_shop(7,167,1);
	add_item_to_shop(7,207,2);
	add_item_to_shop(7,208,1);
	add_item_to_shop(7,210,1);
	add_item_to_shop(7,212,1);
	
	//Shop 8 - Duneflin's paper
	add_item_to_shop(8,185,500);
	add_item_to_shop(8,194,3);
	add_item_to_shop(8,244,1);
	add_item_to_shop(8,245,1);
	add_item_to_shop(8,247,1);
	//add_item_to_shop(8,262,3);
	//add_item_to_shop(8,263,3);

	//Shop 9 - Warren's magic medicine
	add_item_to_shop(9,4000,1);
	add_item_to_shop(9,4001,1);
	add_item_to_shop(9,4002,1);
	add_item_to_shop(9,4003,1);
	add_item_to_shop(9,223,3);
	
	//Shop 10 - Manucher's supplies
	add_item_to_shop(10,27,2);
	add_item_to_shop(10,141,1);
	add_item_to_shop(10,166,3);
	add_item_to_shop(10,174,1);
	add_item_to_shop(10,232,1);
	add_item_to_shop(10,284,2);
break;

// This state is called every tick wherever the party is in the scenario.
// You can use the set_state
beginstate START_STATE;

break;

// Place your own states below. Give each a number at least 10.
beginstate 10;
break;
