// 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 = "Brandon";
	text1 = "You see a small man with short blonde hair. He wears a belt laden with tools.";
		
begintalknode 2;
	state = 1;
	personality = 400;
	nextstate = -1;
	condition = 1;
	question = "_I want to buy one of your boats._ (Pay him 300 coins.)";
	text1 = "_Excellent. You can have one of the boats at the dock outside. Be sure to explore the river outside. I'm sure there's lots of interesting things._";
	text3 = "_Again, that's 300 coins. If you don't have it, no boat._";
	text5 = "There are no ships left.";
	code =
		clear_strings();
		if (coins_amount() >=300) {
                        if (set_boat_range_property(6,8) >= 0) {
				add_string(1);
                                change_coins(-300);
				}
				else add_string(5);
                }
                else add_string(3);
	break;


	
