

// First hello.
group GreetFirstContact
{
	
	dialog
	{
		motive HideMe ;
		
		text "OK, then terraform this planet!" ;
		
		do CreateTerraformMission ;
		
		button
		{
			text "ok, bye" ;
			do HangUp ;
			do GiveMoney "100" ;
		} ;	
	} ;
	
	// Warm welcome
	dialog
	{
		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 Isolationist;
        
        attitude neutral ;
        
		text "Go Away." ;
        
        button
        {
            text "Give Gift";
            do RelationshipPlus;
            do	SayDialogFromGroup ReactToGift ;
    
        };
        
	} ;
    
	dialog
	{
		motive AtWar;
        
        attitude angry ;
        
		text "Are you crazy? We're at war." ;
        text "We WILL shoot on sight!" ;
        
        button
        {
            text "Give Gift";
            do RelationshipPlus;
            do	SayDialogFromGroup ReactToGift ;
        };
    };
    
    dialog
	{
		motive Default ;
        
        attitude happy ;
        
		text "Glad you're back" ;
		text "Come on in." ;
        
        button 
        
        { 
    
            text "OK";
            do SayDialog MainMenu;
        
        };
    };

} ;

group ReactToMissionReject
{
    dialog
	{
		motive Default ;
        
        attitude neutral ;
        
		
		text "You should’ve said yes.";
        text "Come in at your own risk.";
        do RelationshipMinus ;
        
    };
    
    dialog
	{
		motive Strong ;
        
        attitude neutral ;
        
		
		text "Then we cannot let you in.";
        do RelationshipMinus ;
	} ;
    
};
group ReactToMissionAccept
{
    dialog
    {
        motive Default ;
        
        attitude happy ;
        
		
        text "Good. ";
        text "Pick up X and bring it";
        text "back to our main city";
        
       
        button 
        {
        text "OK" ;
        do RelationshipPlus ; 
        };
        
    };
    
    dialog
    {
        motive Default ;
        
        attitude happy ;
        
		
        text "Make us a beautiful mountain" ;
        text " with your terrain tools" ;
        
        button 
        { 

			text "OK";
            do RelationshipPlus ;
            
        };
	} ;
    
    dialog
    {
        motive Default ;
        
        attitude happy ;
        
		
        text "Good. ";
        text "Go kill this bad species";
        text "on our planet";
        
            button 
            { 
            
                text    "OK";
                do RelationshipPlus ;
            
            };
        
    };
};

group ReactToIComeInPeace
{
	
	dialog
	{
		motive Nice ;
        
        attitude happy ;
                
		text "Come closer." ;
	} ;
	
	dialog
	{
		motive Distrust ;
		
		text "We don't believe you." ;
		text "Please don't approach." ;
      
		do RelationshipMinus ;
	} ;
    
	dialog
	{
		motive Isolationist ;
		
		text "We want to be left alone." ;
		text "Please don't approach." ;
      
	} ;	
	dialog
	{
		motive Default ;
		
		text "We'll let you in if you do an easy " ;
		text "mission for us" ;
		
		button
		{
			text	"Sure!" ;
			
			do		RelationshipPlus ;
            do      SayDialogFromGroup ReactToMissionAccept ;
		} ;
		
		button
		{	
			text	"No Way!" ;
            
            do      SayDialogFromGroup ReactToMissionReject ;

			do		RelationshipMinus ;
            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 InWeakAlliance ;

		attitude fear ;

		text "We'll be your ally if" ;
		text "you don't attack us." ;
		
		button
		{
			text "OK, join me as an ally." ;
			
			do AlienJoinsMyAlliance ;
			do RelationshipPlus ;
		} ;
		
		button
		{
			text "No, I don't want you" ;
            text "as my ally." ;
            
		} ;
	} ;


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

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

} ;

group 	ReactToAttack
{
	dialog
	{
		motive Default ;
		
		attitude angry ;
		
		text "What the hell did you" ;
		text "do that for?" ;
		text "Now we'll attack YOU!" ;
        do AlienAttack ; 
        do RealtionshipMinus;
        
	} ;	
    
 	dialog
	{
		motive Strong not-AtWar;
		
		attitude angry ;
		
		text "We declare war on YOU" ;
        do RelationshipMinus;
        do RelationshipMinus;
        do DeclareWar ; 
        do AlienAttack ;
	} ;
    
    dialog
	{
		motive Weak ;
		
		attitude sad ;
		
		text "We can't fight you --" ;
		text "please stop" ;
        
	} ;	
    
     dialog
	{
		motive AllySpoke ;
		
		attitude neutral ;
		
		text "Hey! We are your ally." ;
		text "Don't attack us." ;
        do RelationshipMinus;
        
	} ;	
    
     dialog
	{
		motive Pacifist ;
		
		attitude neutral ;
		
		text "We will not fight." ;
		text "We surrender" ;
        
        button
		{
			text "We accept your surrender," ;
			text "but only take your money, not" ;
            text "your colonies." ;
        };
        
        button
		{
			text "We accept your surrender" ;
			text "and take all your money and colonies" ;
          
        };
        
        button
		{
        
			text "We do not accept your surrender" ;
			text "We don't want anything from you." ;
          
        };

    };
    

} ;

dialog MainMenu
{
    button
    {
        text "Give Gift";
        do RelationshipPlus;
        do	SayDialogFromGroup ReactToGift ;
    
    };
    
    button
    {
        text "Trade?";
        do	SayDialogFromGroup ReactToTrade ;
 
    }; 
    
    button
    {
        motive not-Allies;
        text "Alliance?";
        do	SayDialogFromGroup ReactToAlliance ;
    }; 
    
} ;

group ReactToTrade
{ 


    dialog

	{
		motive Default ;
        
        attitude neutral ;
        
		
		text "Yes. We'll trade";
        attitude happy ;        
        
     };
     
} ;

group ReactToAlliance
{ 


    dialog

	{
		motive Default ;
        
        attitude happy ;
        
		
		text "Yes. We'll join your alliance";
        
        
        do   RelationshipPlus ; 
        do   AlienJoinsMyAlliance ;         
        
     };
     
     dialog

	{
		motive Isolationist ;
        
        attitude neutral ;
        
		
		text "No, we prefer to be ";
        text "unallied ";
            
        
     };    
 
    dialog
    
    {
		motive InStrongAlliance ;
        
        attitude neutral ;
        
		
		text "Sorry, we are already a ";
        text "member of Alliance X ";
        text "and won't break from them. ";
            
        
     }; 
     
     dialog
    
    {
		motive InWeakAlliance ;
        
        attitude neutral ;
        
		
		text "Yes, we'll join you " ;
        text "but first we must break" ;
        text "with Alliance X. " ;
        do AlienJoinsMyAlliance;
        
     }    
} ;

group ReactToGift
{
    dialog
	{
		motive Default ;
        
        attitude happy ;
        
		
		text "Wow, $100. Thanks";
        do RelationshipPlus ;
    
    };
    
     
     dialog
	{
		motive AtWar ;
        
        attitude angry ;
        
		
		text "We do not want your";
        text "stinking gifts";
        do RelationshipMinus ;
    }; 
    
    dialog
	{
		motive Distrust ;
        
        attitude neutral ;
        
		
		text "Hmm, seems like you're";
        text "trying to buy my friendship";
        do RealtionshipPlus
	} ;  
 };

group ReactToEnterPlanetMapView
{
	dialog
	{
	    motive Nice not-AtWar not-Enemy ;
        text "Have a look around our planet" ;
	} ;
    
dialog
	{
	    motive Isolationist;
        
        attitude angry;
        
        text "You ignored our request to stay away." ;
        text "That makes us mad." ;
        do RelatioshipMinus;
        
	} ;
    
} ;
 
group ReactToPlace
{
	dialog
	{
        motive Enemy;
		text "Why did you dump that here?" ;
		text "We don't want it." ;
        do RelationshipMinus;

	} ;
} ;

group ReactToAbduct
{
	dialog
	{
	    motive Enemy ;
        
        text "Bring that back" ;
		text "or we'll attack you!" ;
		do AlienAttack; 
        do RelationshipMinus;        
	} ;
    	dialog
	{
	    motive Friend ;
        
        text "You can have it" ;
		text "I share with my friends." ;
     };
     
    dialog
	{
        motive Default ;
        
        text "I'm not sure I" ;
		text "like you taking my stuff." ;
        do RelationshipMinus
	} ;
} ; 