
	/*
		Bugs/Notes:
		
		(1) For now, all dialogs in groups must NOT have names, or they won't be found.


		Attitudes:
			"neutral" ,
			"happy" ,
			"shiftyLeft" ,
			"shiftyRight" ,
			"angry" ,
			"fear" ,
			"behind" ,
			"sad"
	*/


// First hello.
group GreetFirstContact
{
	// Warm welcome
	dialog
	{
		motive Default ;
		
		text "Welcome!" ;
		
		button
		{
			text	  "I come in peace." ;


			do		RelationshipPlus ;
			do		SayDialogFromGroup ReactToIComeInPeace ;
		} ;
		
		button
		{
			text	  "Prepare to die." ;
			
			do		RelationshipMinus ;
			do		SayDialogFromGroup ReactToThreat ;
		} ;
	} ;
} ;


// Hello again.
group Greet
{
	dialog
	{
		motive Default ;
		
		text "Go Away." ;
	} ;
} ;

// Player flies away from the planet
group ReactToLeaveOrbit
{
	dialog
	{
		text "Bye!" ;
	} ;

	dialog
	{
		motive AtWar ;
		
		text "That's Right!" ;
	} ;
} ;


// Next step...
action RejectMission
{
	verb	reject ;
	object	mission offer ;
} ;

action AcceptMission
{
	verb	accept ;
	object	mission offer ;
} ;

group ReactToIComeInPeace
{
	
	dialog
	{
		motive Nice ;
		
		text "Come closer." ;
	} ;
	
	dialog
	{
		motive Weak ;
		
		text "We don't believe you." ;
		text "Please don't approach." ;
      
		do RelationshipMinus ;
	} ;
	
	dialog
	{
		motive Default ;
		
		text "We'll let you in if you do this mission:" ;
		text "<Mission>" ;
		
		button
		{
			action	AcceptMission ;
			text	"Sure!" ;
			
			do		RelationshipPlus ;
		} ;
		
		button
		{	
			action	RejectMission ;
			text	"No Way!" ;

			do		RelationshipMinus ;
		} ;
	} ;
} ;



group ReactToThreat
{

	
	dialog
	{
		motive Weak ;
		
		attitude fear ;
		
		text "We beg you --" ;
		text "do not attack us." ;
	} ;

	dialog
	{
		motive Weak ;
		
		attitude fear ;
		
		text "We'll give you {money}" ;
		text "or {object} if you do not" ;
		text "attack us."
	} ;
	
	dialog
	{
		motive Weak ;

		attitude fear ;

		text "We'll be your ally if" ;
		text "you don't attack us." ;
		
		button
		{
			text "Yes" ;
			
			do PlayerJoinsAllianceAsHub ;
			do RelationshipPlus ;
		} ;
		
		button
		{
			text "No way!" ;
		} ;
	} ;


	dialog
	{
		motive Pacifist ; // cg: Should be Pacifist and Weak, I think.
		
		text "Don't attack us." ;
		text "We surrender." ;
	} ;
	
	dialog
	{
		motive Strong ;
		
		
		attitude angry ;
		
		text "Then prepare to be attacked." ;
	} ;

	dialog
	{
		motive Strong ;
		
		
		attitude neutral ;
		
		text "We will not waste time" ;
		text "responding to your" ;
		text "puny attacks." ;
	} ;

	dialog
	{
		text "Hmmm." ;
	} ;
} ;

group 	ReactToAttack
{
	
} ;