//******************
//Warp - Data Script
//******************

beginscendatascript;


//*******************
//***TERRAIN TYPES***
// (431-449 are safe from te_can_look_at bug) 
// (also 452-455, 460-468, 472-484, 487-489, 495-end)
//Index:
// *Trees
// *Indoor Set Pieces


//***INDOOR SET PIECES***

begindefineterrain 358; //barrel
	import = 266; //brazier
	te_name = "Barrel";
	te_which_sheet = 720;
	te_which_icon = 6;
	te_ed_which_sheet = 682;
	te_ed_which_icon = 6;
begindefineterrain 359; //barrel
	te_which_icon = 7;
	te_ed_which_icon = 7;

begindefineterrain 287; //anti-portal
	import = 268; //portal
	te_icon_adjust = 64;

begindefineterrain 452; //open box
	import = 202;
	te_which_sheet = 504;
	te_which_icon = 16;
begindefineterrain 453;
	import = 203;
	te_which_sheet = 504;
	te_which_icon = 17;
begindefineterrain 454; //open dresser
	import = 238;
	te_which_sheet = 504;
	te_which_icon = 18;
begindefineterrain 455;
	import = 239;
	te_which_sheet = 504;
	te_which_icon = 19;

begindefineterrain 460; //ruined pillar
	import = 232;
	te_name = "Ruined Pillar";
	te_which_sheet = 504;
	te_which_icon = 6;
	te_second_icon = -1;
	te_icon_offset_y = -6;
begindefineterrain 461; //rubble pile
	import = 137; //rubble
	te_which_sheet = 504;
	te_which_icon = 10;
begindefineterrain 462; //big rubble
	te_which_icon = 2;
	te_full_move_block = 1;
begindefineterrain 463;
	te_which_icon = 3;
begindefineterrain 464; //ruined bed
	import = 206; //bed
	te_which_sheet = 504;
	te_which_icon = 0;
begindefineterrain 465; //ruined bed
	import = 207; //bed
	te_which_sheet = 504;
	te_which_icon = 1;
begindefineterrain 466; //ruined plant
	import = 208; //potted plant
	te_which_sheet = 504;
	te_which_icon = 7;
	te_name = "Empty Pot";
begindefineterrain 467; //ruined oven
	import = 252; //oven
	te_which_sheet = 504;
	te_which_icon = 9;
	te_name = "Ruined Oven";
	te_icon_offset_y = -7;

//Darken the steps
begindefineterrain 293; 
	clear;
	te_name = "Stone Stairs";
	te_which_sheet = 739;
	te_which_icon = 6;
	te_ed_which_sheet = 683;
	te_ed_which_icon = 0;
	te_height_adj_pixels = 12;
	te_special_property = 25;
	te_draw_on_automap = 1;
	te_suppress_floor = 1;
	te_icon_adjust = 17;
begindefineterrain 294; 
	te_which_icon = 7;
	te_ed_which_icon = 1;
	te_special_property = 19;
begindefineterrain 295; 
	te_which_icon = 8;
	te_ed_which_icon = 2;
	te_special_property = 21;
begindefineterrain 296; 
	te_which_icon = 9;
	te_ed_which_icon = 3;
	te_special_property = 23;


//***TREES***

//Town-sized
begindefineterrain 147;
	import = 153;
	te_which_sheet = 501;
	te_which_icon = 0;
	te_second_icon = 1;
	te_icon_offset_y = -8;
	te_second_icon_offset_y = -63;
begindefineterrain 148;
	te_which_sheet = 501;
	te_which_icon = 8;
	te_second_icon = 9;
begindefineterrain 152; //evergreen
	te_which_sheet = 501;
	te_which_icon = 6;
	te_second_icon = 7;
begindefineterrain 149;
	te_which_sheet = 501;
	te_which_icon = 2;
	te_second_icon = -1;
begindefineterrain 150;
	te_which_sheet = 501;
	te_which_icon = 3;
begindefineterrain 151;
	te_which_sheet = 501;
	te_which_icon = 4;
begindefineterrain 153; //evergreen
	te_which_sheet = 501;
	te_which_icon = 5;
	
//Outdoor-sized
begindefineterrain 431;
	te_name = "Trees";
	te_which_sheet = 500;
	te_which_icon = 0;
	te_second_icon = 1;
	te_icon_offset_y = 0;
	te_second_icon_offset_y = -55;
begindefineterrain 432;
	te_which_icon = 2;
	te_second_icon = 3;
begindefineterrain 433;
	te_which_icon = 4;
	te_second_icon = 5;
begindefineterrain 434;
	te_which_icon = 6;
	te_second_icon = -1;
begindefineterrain 435;
	te_which_icon = 7;
begindefineterrain 436;
	te_which_icon = 8;
begindefineterrain 437;
	te_which_icon = 9;
begindefineterrain 438;
	te_which_icon = 16;
begindefineterrain 439;
	te_which_icon = 17;
begindefineterrain 440;
	te_which_icon = 18;
begindefineterrain 441;
	te_which_icon = 19;
begindefineterrain 442; //evergreen
	te_which_icon = 10;
	te_second_icon = 11;
begindefineterrain 443; //evergreen
	te_which_icon = 12;
	te_second_icon = 13;
begindefineterrain 444; //evergreen
	te_which_icon = 14;
	te_second_icon = 15;
begindefineterrain 445; //evergreen
	te_which_icon = 22;
	te_second_icon = 23;
begindefineterrain 446; //evergreen
	te_which_icon = 20;
	te_second_icon = -1;
begindefineterrain 447; //evergreen
	te_which_icon = 21;
begindefineterrain 448; //evergreen
	te_which_icon = 24;


//************
//***FLOORS***

//faded floors
begindefinefloor 92;
	import = 96; //tiled floor
	fl_icon_adjust = 8;

//Dark tiled floor
begindefinefloor 94;
	import = 95; //floor
	fl_icon_adjust = 64;
begindefinefloor 130; //blocked version
	fl_special_property = 6;

//Walkable Darkness
begindefinefloor 155;
	import = 71; //Pit
	fl_blocked = 0;
	fl_name = " ";
//Stars (thanks to Dahak)
begindefinefloor 156;
	fl_which_sheet = 503;
	fl_which_icon = 0;
begindefinefloor 157;
	fl_which_icon = 1;
begindefinefloor 158;
	fl_which_icon = 2;
begindefinefloor 159;
	fl_which_icon = 3;
begindefinefloor 160;
	fl_which_icon = 4;
begindefinefloor 161;
	fl_which_icon = 5;
begindefinefloor 162;
	fl_which_icon = 6;
begindefinefloor 163;
	fl_which_icon = 7;

//Summoning Platform
begindefinefloor 132;
	import = 98;
	fl_which_sheet = 502;
	fl_which_icon = 0;
	fl_name = "Summoning Platform";
begindefinefloor 133;
	fl_which_icon = 1;
begindefinefloor 134;
	fl_which_icon = 2;
begindefinefloor 135;
	fl_which_icon = 3;
begindefinefloor 136;
	fl_which_icon = 4;
begindefinefloor 137;
	fl_which_icon = 5;
begindefinefloor 138;
	fl_which_icon = 6;
begindefinefloor 139;
	fl_which_icon = 7;
begindefinefloor 140;
	fl_which_icon = 8;
begindefinefloor 141;
	fl_which_icon = 9;
begindefinefloor 142;
	fl_which_icon = 10;
begindefinefloor 143;
	fl_which_icon = 11;
begindefinefloor 144;
	fl_which_icon = 12;
begindefinefloor 145;
	fl_which_icon = 13;
begindefinefloor 146;
	fl_which_icon = 14;
begindefinefloor 147;
	fl_which_icon = 15;
begindefinefloor 148;
	fl_which_icon = 16;
begindefinefloor 149;
	fl_which_icon = 17;
begindefinefloor 150;
	fl_which_icon = 18;
begindefinefloor 151;
	fl_which_icon = 19;
begindefinefloor 152;
	fl_which_icon = 20;
begindefinefloor 153;
	fl_which_icon = 21;
begindefinefloor 154;
	fl_which_icon = 22;


//***********
//***ITEMS***

begindefineitem 445; //Scroll
	import = 185; //papyrus sheet
	it_name = "Scroll";
	it_full_name = "Scroll";
	it_identified = 1;
	it_inventory_icon = 6;
	it_floor_which_icon = 5;
	it_ability_1 = 207;
	it_ability_str_1 = 10;
begindefineitem 446; //Loose paper
	it_name = "Papyrus Sheet";
	it_full_name = "Papyrus Sheet";
	it_inventory_icon = 4;
	it_floor_which_icon = 3;
	it_ability_1 = 207;
	it_ability_str_1 = 11;

begindefineitem 447; //Ivory Wand
	import = 286; //Wand of Fire
	it_name = "Wand";
	it_full_name = "Ivory Wand";
	it_floor_which_sheet = 1045;
	it_floor_which_icon = 7;
	it_inventory_icon = 6;
	it_icon_adjust = 0;
	it_charges = 1;
	it_ability_1 = 219;
	it_ability_str_1 = 20;
	

//***************
//***CREATURES***

begindefinecreature 234; //Martha
	import = 14; //apprentice mage
	cr_name = "Martha";
	cr_default_script = "martha";
	cr_level = 15;
	cr_species = 12; //Special... immune to Simulacrum, etc.
	cr_summon_class = -1;
	cr_which_sheet = 521;

begindefinecreature 235; //Ethalia
	clear;
	cr_name = "Ethalia";
	cr_default_script = "ethalia";
	cr_which_sheet = 1518;
	cr_immunities 0 = 50;
	cr_immunities 1 = 50;
	cr_immunities 2 = 100;
	cr_which_sheet = 523;
	cr_small_or_large_template = 1;
	cr_default_strategy = 1;
	cr_species = 12; //Special... immune to Simulacrum, etc.
	cr_level = 20;
	cr_hp_bonus = 300;
	cr_sp_bonus = 1000;
	cr_special_abil = 4; //slowing touch
	cr_what_stat_adjust 0 = 25; //Up Magery by 0
	cr_amount_stat_adjust 0 = 0;
	cr_what_stat_adjust 1 = 11; //Up Mage Spells by 17
	cr_amount_stat_adjust 1 = 13;
	cr_what_stat_adjust 2 = 26; //Up Resistance by 2
	cr_amount_stat_adjust 2 = 2;
	cr_what_stat_adjust 3 = 8; //Up Hardiness by 10
	cr_amount_stat_adjust 3 = 10;
	cr_what_stat_adjust 4 = 9; //Up Defense by 5
	cr_amount_stat_adjust 4 = 5;
	cr_what_stat_adjust 5 = 1; //Up Dexterity by 2
	cr_amount_stat_adjust 5 = 2;
	cr_natural_armor = 5;
	cr_start_item 0 = 22; //Robe
	cr_start_item_chance 0 = 100;
	cr_start_item 1 = 16; //Cloak
	cr_start_item_chance 1 = 100;
	cr_start_item 2 = 270; //Shield Ring
	cr_start_item_chance 2 = 0;
	cr_start_item 3 = 3; //Gold Coins
	cr_start_item_chance 3 = 0;
	cr_start_item 4 = 225; //Haste Potion
	cr_start_item_chance 4 = 0;
	cr_start_item 5 = 228; //Healing Elixir
	cr_start_item_chance 5 = 100;
	cr_start_item 6 = 212; //Gold Necklace
	cr_start_item_chance 6 = 0;
	cr_start_item 7 = 219; //Mandrake
	cr_start_item_chance 7 = 0;
	cr_summon_class = -1;
	cr_immunities 0 = 15; //15% resist fire
	cr_immunities 1 = 15; //15% resist cold
	cr_immunities 2 = 50; //50% resist magic
	cr_immunities 3 = 50; //50% resist mental
	cr_immunities 5 = 30; //15% resist melee
	
begindefinecreature 236; //Ach'deniz'toh
	clear;
	cr_name = "Ach'deniz'toh";
	cr_default_script = "achden";
	cr_level = 25;
	cr_what_stat_adjust 0 = 8; //Up Hardiness by 8
	cr_amount_stat_adjust 0 = 8;
	cr_what_stat_adjust 1 = 11; //Up Mage Spells by 14
	cr_amount_stat_adjust 1 = 14;
	cr_what_stat_adjust 2 = 25; //Up Magery by 0
	cr_amount_stat_adjust 2 = 0;
	cr_what_stat_adjust 3 = 9; //Up Defense by 4
	cr_amount_stat_adjust 3 = 4;
	cr_what_stat_adjust 4 = 26; //Up Resistance by 2
	cr_amount_stat_adjust 4 = 2;
	cr_hp_bonus = 300;
	cr_sp_bonus = 1000;
	cr_default_attitude = 4;
	cr_natural_armor = 8;
	cr_which_sheet = 520;
	cr_icon_adjust = 7;
	cr_attack_1 = 4;
	cr_attack_2 = 2;
	cr_attack_3 = 2;
	cr_attack_1_type = 2;
	cr_attack_23_type = 1;
	cr_immunities 0 = 100; //100% resist fire
	cr_immunities 1 = 50; //50% resist cold
	cr_immunities 2 = 15; //15% resist magic
	cr_immunities 4 = 50; //50% resist acid/poison
	cr_immunities 5 = 30; //15% resist melee
	cr_summon_class = -1;
	cr_species = 12; //Special... immune to Simulacrum, etc.

begindefinecreature 237; //Young Ethalia
	import = 234; //Martha
	cr_name = "Young Ethalia";
	cr_default_script = "youngeth";
	cr_which_sheet = 522;