// TOWN DIALOGUE SCRIPT
//    Town 5: Cotra

// This is the dialogue for this town.
// You can use states numbered from 1 to 99.

begintalkscript;

variables;

int i,j,k,r1,choice;

begintalknode 1;
	state = -1;
	personality = 400;
	nextstate = 1;
	condition = 1;
	question = "Eduardo";
	text1 = "You see a heavy man with a peg-leg. He wears an eyepatch, but you can't help but notice that he occasionally lifts it and looks at things with both eyes.";
		
begintalknode 2;
	state = 1;
	personality = 400;
	nextstate = -1;
	condition = 1;
	question = "_I want to buy a boat._  (Pay him 250 coins.)";
	text1 = "_Arrr. Now, you are free to sail the high seas. Onto the water you go. Arrrr._ He hands you the deed to one of the boats on the docks to the south. You can now board it.";
	text3 = "_Arr. You don't have enough money. Arrr_";
	text5 = "There are no ships left.";
	code =
		clear_strings();
		if (coins_amount() >=250) {
                        if (set_boat_range_property(2,4) >= 0) {
				add_string(1);
                                change_coins(-250);
				}
				else add_string(5);
                }
                else add_string(3);
	break;


	
