
// Avernum 1 Template Custom Object Types

beginscendatascript;

// FLOOR TYPES


begindefinefloor 81;
	clear;
	fl_name = "Cave Floor";
	fl_which_sheet = 500;
	fl_which_icon = 3;
	fl_ed_which_sheet = 580;
	fl_ed_which_icon = 5;
	fl_out_fight_town_used = 1022;
	fl_shortcut_key = 10;
begindefinefloor 82;
	fl_which_icon = 4;

begindefinefloor 92;
	clear;
	fl_name = "Ice";
	fl_which_sheet = 752;
	fl_which_icon = 0;
	fl_ed_which_sheet = 684;
	fl_ed_which_icon = 20;
	fl_special_property = 2;
	fl_special_strength = 50;
	// fl_out_fight_town_used = 1009;
	fl_is_rough = 1;
	fl_anim_steps = 4;
	fl_shortcut_key = 9;
begindefinefloor 93;  
	fl_special_property = 0;

begindefinefloor 94;
	import = 97;
	fl_special_property = 3;
	fl_special_strength = 16;	

begindefinefloor 100;
	import = 95;
	fl_which_sheet = 500;
	fl_which_icon = 6;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 62;

	
begindefinefloor 104;
	import = 97;
	fl_which_icon = 5;
	fl_which_sheet = 500;	
	fl_ed_which_sheet = 580;
	fl_ed_which_icon = 4;
	
// stone floors
// carpets
begindefinefloor 117;
	clear;
	fl_name = "Red Carpet";
	fl_which_sheet = 707;
	fl_which_icon = 3;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 73;
	fl_is_floor = 1;
	fl_out_fight_town_used = 1024;
	fl_shortcut_key = 15;

begindefinefloor 118;
	fl_which_icon = 4;
	fl_ed_which_icon = 74;

begindefinefloor 119;
	fl_which_sheet = 709;
	fl_which_icon = 0;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 90;
	fl_icon_adjust = 0;
	
begindefinefloor 120;
	fl_which_icon = 1;
	fl_ed_which_icon = 91;

	
begindefinefloor 124;
	import = 80;
	fl_blocked = 1;	

begindefinefloor 129;
	import = 97;
	fl_special_property = 6;
	
begindefinefloor 130;
begindefinefloor 131;
begindefinefloor 132;
	
begindefinefloor 133;
	import = 0;
begindefinefloor 134;
	import = 2;

begindefinefloor 135;
	clear;
	fl_name = "Dirt";
	fl_which_sheet = 703;
	fl_which_icon = 7;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 37;
		
begindefinefloor 136;
	import = 0;
begindefinefloor 137;
	import = 4;
begindefinefloor 138;
	import = 8;
	
begindefinefloor 139;
	fl_name = "Dirt";
	fl_which_sheet = 703;
	fl_which_icon = 7;
	fl_ed_which_sheet = 680;
	fl_ed_which_icon = 37;

begindefinefloor 140;

begindefinefloor 141;
	clear;
	fl_name = "Cave Floor";
	fl_which_sheet = 500;
	fl_which_icon = 3;
	fl_ed_which_sheet = 580;
	fl_ed_which_icon = 5;
	fl_out_fight_town_used = 1022;
	fl_shortcut_key = 10;
	fl_light_radius = 1;	
	
begindefinefloor 142;
	fl_which_icon = 4;

//Floor types 194,195 are treated as signs!
			
// Floor types 213:215 are treated as signs!

// This floor type is meant to track usage (in outdoor.dat) of 
// floor types that I didn't think would actually be used.	
// traces translation errors
begindefinefloor 254; 
	clear;
	fl_which_sheet = 501;
	fl_which_icon = 8;
	fl_ed_which_sheet = 580;
	fl_ed_which_icon = 7;

begindefinefloor 255;
	clear;
	fl_name = "Cave Floor";
	fl_which_sheet = 502;
	fl_which_icon = 0;
	fl_ed_which_sheet = 580;
	fl_ed_which_icon = 15;
	fl_out_fight_town_used = 1022;
	fl_blocked = 1;	
		
// --- custom terrain ---


begindefineterrain 123;
	clear;
	te_name = "Boulder";
	te_which_sheet = 501;
	te_which_icon = 6;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 9;
	te_draw_on_automap = 1;
	te_full_move_block = 1;
		
begindefineterrain 124;
	te_which_sheet = 717;
	te_which_icon = 7;
	te_ed_which_sheet = 681;
	te_ed_which_icon = 77;

		
begindefineterrain 175;
	import = 147;
	te_name = "Pillar";
	te_which_sheet = 724;
	te_which_icon = 5;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 45;
	te_second_icon = 6;
	te_draw_on_automap = 1;
//	te_icon_offset_y = -10;

begindefineterrain 176;
	import = 255;
	te_name = "Marble Table";
	te_which_sheet = 727;
	te_which_icon = 9;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 79;
	te_draw_on_automap = 1;

begindefineterrain 177; 
	clear;
	te_name = "Unfinished Boat";
	te_which_sheet = 741;
	te_which_icon = 7;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 17;
	
begindefineterrain 178;
	clear;
	te_draw_on_automap = 1;
	te_full_move_block = 1;
	te_name = "Grave Pillar";
	te_which_sheet = 728;
	te_which_icon = 6;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 86;	
	
begindefineterrain 257;
	import = 219;
	te_name = "Counter";
	te_which_sheet = 501;
	te_which_icon = 1;
	te_ed_which_sheet = 689;
	te_ed_which_icon = 50;
begindefineterrain 258;
	te_which_icon = 0;
	te_ed_which_icon = 51;

begindefineterrain 268;
	clear;
	te_name = "Portal";
	te_which_sheet = 744;
	te_which_icon = 0;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 30;
	te_light_radius = 3;
	te_anim_steps = 4;
	te_draw_on_automap = 1;	
	te_default_script = "portalflag";
//	te_ed_which_sheet = 580;
//	te_ed_which_icon = 16;
		
begindefineterrain 287;
	import = 219;
	te_name = "Bedside Table";
	te_which_sheet = 757;
	te_which_icon = 9;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 79;
				
// Recall Crystal terrain		
begindefineterrain 288;
	clear;
	te_name = "Magical City";
	te_which_sheet = 743;
	te_which_icon = 3;
	te_ed_which_sheet = 580;
	te_ed_which_icon = 14;
//	te_ed_which_sheet = 683;
//	te_ed_which_icon = 33;
	te_draw_on_automap = 0;	
	te_hidden_town_terrain = 0;

		
begindefineterrain 340; 
	clear;
	te_name = "Sloped Floor";
	te_which_sheet = 501;
	te_which_icon = 2;
	te_ed_which_sheet = 580;	
	te_ed_which_icon = 10;
	te_height_adj_pixels = 12;
	te_draw_on_automap = 1;
	te_suppress_floor = 1;
	te_special_property = 25;
begindefineterrain 341; 
	te_which_icon = 3;
	te_ed_which_icon = 11;
	te_special_property = 19;
begindefineterrain 342; 
	te_which_icon = 4;
	te_ed_which_icon = 12;
	te_special_property = 21;
begindefineterrain 343; 
	te_which_icon = 5;
	te_ed_which_icon = 13;
	te_special_property = 23;
	
begindefineterrain 358;
	clear;
	te_name = "Stalagmite";
	te_which_sheet = 759;
	te_which_icon = 8;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 98;
	te_draw_on_automap = 1;
	te_full_move_block = 1;
	te_out_fight_town_used = 1003;
begindefineterrain 359;
	te_which_icon = 9;
	te_ed_which_icon = 99;
	te_full_move_block = 0;
	
begindefineterrain 377;
	import = 219;
	te_name = "Counter";
	te_which_sheet = 759;
	te_which_icon = 6;
	te_ed_which_sheet = 684;
	te_ed_which_icon = 96;
begindefineterrain 378;
	te_which_icon = 7;
	te_ed_which_icon = 97;
	
// traces translation errors
begindefineterrain 500; 
	clear;
	te_which_sheet = 501;
	te_which_icon = 9;
	te_ed_which_sheet = 580;
	te_ed_which_icon = 8;
	
// --- custom items ---


begindefineitem 445; 
	clear;
	it_name = "Mind Crystal";
	it_full_name = "Mind Crystal - Beastcall";
	it_variety = 21;
	it_floor_which_sheet = 1023;
	it_floor_which_icon = 4;
	it_inventory_icon = 5;
	it_ability_1 = 207;
	it_ability_str_1 = 11;
	it_value = 1000;
	it_weight = 10;
	it_magic = 1;

begindefineitem 446;
	 it_full_name = "Mind Crystal - Spiritcall";
	it_ability_str_1 = 12;
begindefineitem 447;
	 it_full_name = "Mind Crystal - Lay On Hands";
	it_ability_str_1 = 13;
begindefineitem 448;
	 it_full_name = "Mind Crystal - Venomfoe";
	it_ability_str_1 = 14;
begindefineitem 449;
	 it_full_name = "Mind Crystal - Berzerker";
	it_ability_str_1 = 15;
begindefineitem 450;
	 it_full_name = "Mind Crystal - Inner Might";
	it_ability_str_1 = 16;
begindefineitem 451;
	 it_full_name = "Mind Crystal - Shielder";
	it_ability_str_1 = 17;
begindefineitem 452;
	 it_full_name = "Mind Crystal - Blademaster";
	it_ability_str_1 = 18;
begindefineitem 453;
	 it_full_name = "Mind Crystal - Anatomy";
	it_ability_str_1 = 19;
begindefineitem 454;
	 it_full_name = "Mind Crystal - Gymnastics";
	it_ability_str_1 = 20;
begindefineitem 455;
	 it_full_name = "Mind Crystal - Pathfinder";
	it_ability_str_1 = 21;
begindefineitem 456;
	 it_full_name = "Mind Crystal - Magery";
	it_ability_str_1 = 22;
begindefineitem 457;
	 it_full_name = "Mind Crystal - Resistance";
	it_ability_str_1 = 23;

begindefineitem 460;
	import = 415;
	it_full_name = "Mushroom Merlot '91";
	it_floor_which_sheet = 1023;
	it_floor_which_icon = 8;
	it_inventory_icon = 7;
	it_ability_str_1 = 40;
	it_value = 80;
	it_weight = 20;
	
begindefineitem 461;
	it_full_name = "Hardonnay '85";
	it_value = 90;	
begindefineitem 462;
	it_full_name = "Almaria Yellow '91";
	it_value = 120;	
begindefineitem 463;
	clear;
	it_full_name = "Bag of Sugar";
begindefineitem 464;
	it_full_name = "Aranea Fangs";
begindefineitem 465;
	it_full_name = "Ore";
	
begindefineitem 466;
	clear;
	 it_full_name = "Historical Scroll";
	it_variety = 21;
	it_floor_which_sheet = 1014;
	it_floor_which_icon = 5;
	it_inventory_icon = 6;
	it_ability_1 = 207;
	it_ability_str_1 = 10;
	it_value = 10;
	it_weight = 10;
	
begindefineitem 467;
	clear;
	it_name = "Orb of Thralni";
	it_full_name = "Orb of Thralni";
	it_variety = 21;
	it_floor_which_sheet = 1017;
	it_floor_which_icon = 0;
	it_inventory_icon = 7;
	it_ability_1 = 213;
	it_ability_str_1 = 6;
	it_value = 5000;
	it_weight = 5;
	it_magic = 1;

begindefineitem 468;
	import = 282;
	it_full_name = "Wand of Carrunos";
//	it_ability_1 = 220;
//	it_ability_str_1 = 100;
//  this needs to be written up.
	
begindefineitem 469;
	clear;
	it_name = "Crystal";
	 it_full_name = "Recall Crystal";
	it_variety = 21;
	it_charges = 1;
	it_floor_which_sheet = 1017;
	it_floor_which_icon = 9;
	it_inventory_icon = 8;
	it_ability_1 = 208;
	it_ability_str_1 = 24;
	it_value = 50;
	it_weight = 5;
	it_magic = 1;

begindefineitem 470;
	clear;
	it_name = "Custom Spellbook";
	 it_full_name = "Custom Spellbook";
	it_variety = 21;
	it_floor_which_sheet = 1026;
	it_floor_which_icon = 0;
	it_inventory_icon = 0;
	it_ability_1 = 207;
	it_ability_str_1 = 26;
	it_value = 50;
	it_weight = 5;
 	
 					
// --- custom creatures ---
// CREATURE TYPES

// A Blades of Avernum scenario can have up to 256 creature types.

begindefinecreature 106;
	import = 66;
begindefinecreature 108;
	import = 101;

begindefinecreature 109;
	import = 83;	
	
	
begindefinecreature 118;
	import = 108;		
	cr_name = "Pit Drake";	