source: AgentMind/trunk/AgentMind/data/characters/minds/LIRECGoalLibrary.xml @ 310

Revision 310, 12.2 KB checked in by joao.dias, 11 years ago (diff)
Line 
1<GoalLibrary>  
2        <!-- Greeting -->
3        <ActivePursuitGoal name="MakeFriendHappy([target])">
4                <PreConditions>
5                        <Property name="[target](isPerson)" operator="=" value="True" />
6                        <Property name="[target]" operator="!=" value="[SELF]" />
7                        <EmotionCondition emotion="Distress" agent="[target]" min-intensity="2" />
8                </PreConditions>
9                <SucessConditions>
10                        <EmotionCondition emotion="Joy" agent="[target]" min-intensity="1" />
11                        <!--<NewEvent occurred="True" subject="[target]" action="smile"/>-->
12                </SucessConditions>
13                <FailureConditions>
14                </FailureConditions>
15                <ExpectedEffects>
16                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
17                </ExpectedEffects>     
18        </ActivePursuitGoal>
19
20        <ActivePursuitGoal name="Greet([target])">
21                <PreConditions>
22                        <Property name="[target](isPerson)" operator="=" value="True" />
23                        <Property name="[target](isPresent)" operator="=" value="True" />
24                        <Property name="[target]" operator="!=" value="[SELF]" />
25                        <RecentEvent occurred="False" subject="[SELF]" action="SpeechAct" target="[target]" parameters="greeting"/>
26                </PreConditions>
27                <SucessConditions>
28                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="greeting"/>
29                        <RecentEvent occurred="True" subject="[target]" action="GreetBack" target="[SELF]"/>
30                </SucessConditions>
31                <FailureConditions>
32                        <Property name="[target](isPresent)" operator="=" value="False" />
33                </FailureConditions>
34                <ExpectedEffects>
35                        <OnSelect drive="Affiliation" target="[SELF]" value="+6"/>
36                </ExpectedEffects>     
37        </ActivePursuitGoal>
38       
39        <!-- Introducing self to user -->
40        <ActivePursuitGoal name="Welcome([target])">
41                <PreConditions>
42                        <Property name="[target]" operator="!=" value="[SELF]" />
43                        <Property name="[target](isPresent)" operator="=" value="True" />
44                        <Property name="[target](greetCorrectly,[SELF])" operator="=" value="True"/>
45                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="greeting"/>
46                        <RecentEvent occurred="False" subject="[SELF]" action="SpeechAct" target="[target]" parameters="welcome"/>
47                </PreConditions>
48                <SucessConditions>
49                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="welcome"/>
50                </SucessConditions>
51                <FailureConditions>
52                </FailureConditions>                   
53                <ExpectedEffects>
54                        <OnSelect drive="Affiliation" target="[SELF]" value="+4"/>
55                </ExpectedEffects>     
56        </ActivePursuitGoal>
57       
58        <!-- Offer item -->
59        <ActivePursuitGoal name="OfferFruit([target],[item])">
60                <PreConditions>
61                        <Property name="[target](isPerson)" operator="=" value="True" />
62                        <Property name="[target]" operator="!=" value="[SELF]" />
63                        <Property name="[target](isPresent)" operator="=" value="True" />
64                        <Property name="[item](isFruit)" operator="=" value="True" />
65                        <Property name="[item](eatable)" operator="=" value="True" />
66                        <Property name="[SELF](time)" operator="=" value="Morning" />
67                        <RecentEvent occurred="False" subject="[target]" action="Accept" target="[SELF]" parameters="*"/>
68                        <RecentEvent occurred="False" subject="[SELF]" action="SpeechAct" target="[target]" parameters="askPreference"/>
69                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="welcome"/>
70                </PreConditions>       
71                <SucessConditions>
72                        <NewEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="[item]"/>
73                        <RecentEvent occurred="True" subject="[target]" action="Accept" target="[SELF]" parameters="[item]"/>
74                </SucessConditions>     
75                <FailureConditions>
76                        <RecentEvent occurred="True" subject="[target]" action="Reject" target="[SELF]" parameters="[item]"/>
77                </FailureConditions>           
78                <ExpectedEffects>
79                        <OnSelect drive="Affiliation" target="[SELF]" value="+2"/>
80                        <OnIgnore drive="Affiliation" target="[SELF]" value="-2"/>
81                        <OnSelect drive="Affiliation" target="[target]" value="+2"/>                   
82                </ExpectedEffects>                     
83        </ActivePursuitGoal>
84       
85        <ActivePursuitGoal name="OfferCake([target],[item])">
86                <PreConditions>
87                        <Property name="[target](isPerson)" operator="=" value="True" />
88                        <Property name="[target]" operator="!=" value="[SELF]" />
89                        <Property name="[target](isPresent)" operator="=" value="True" />
90                        <Property name="[item](isCake)" operator="=" value="True" />
91                        <Property name="[item](eatable)" operator="=" value="True" />
92                        <Property name="[SELF](time)" operator="=" value="Afternoon" />
93                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="welcome"/>
94                </PreConditions>       
95                <SucessConditions>
96                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="[item]"/>
97                <RecentEvent occurred="True" subject="[target]" action="Accept" target="[SELF]" parameters="[item]"/>
98                </SucessConditions>     
99                <FailureConditions>
100                        <RecentEvent occurred="True" subject="[target]" action="Reject" target="[SELF]" parameters="[item]"/>
101                </FailureConditions>
102                <ExpectedEffects>
103                        <OnSelect drive="Affiliation" target="[SELF]" value="+2"/>
104                        <OnIgnore drive="Affiliation" target="[SELF]" value="-2"/>
105                        <OnSelect drive="Affiliation" target="[target]" value="+2"/>                   
106                </ExpectedEffects>                     
107        </ActivePursuitGoal>
108       
109        <ActivePursuitGoal name="AskPreference([target])">
110                <PreConditions>                 
111                        <Property name="[target](isPerson)" operator="=" value="True" />
112                        <Property name="[target]" operator="!=" value="[SELF]" />
113                        <Property name="[target](isPresent)" operator="=" value="True" />
114                        <RecentEvent occurred="False" subject="[target]" action="Accept" target="[SELF]" parameters="*"/>
115                        <RecentEvent occurred="True" subject="[target]" action="Reject" target="[SELF]" parameters="*"/>
116                </PreConditions>       
117                <SucessConditions>
118                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="askPreference"/>
119                </SucessConditions>             
120                <ExpectedEffects>
121                        <OnSelect drive="Affiliation" target="[SELF]" value="+2"/>
122                        <OnIgnore drive="Affiliation" target="[SELF]" value="-1"/>
123                        <OnSelect drive="Affiliation" target="[target]" value="+2"/>                   
124                </ExpectedEffects>                     
125        </ActivePursuitGoal>
126       
127        <ActivePursuitGoal name="AcknowledgeChoice([target],[item])">
128                <PreConditions>                 
129                        <Property name="[target](isPerson)" operator="=" value="True" />
130                        <Property name="[target]" operator="!=" value="[SELF]" />
131                        <Property name="[target](isPresent)" operator="=" value="True" />
132                        <RecentEvent occurred="True" subject="[target]" action="Choose" target="[SELF]" parameters="[item]"/>
133                </PreConditions>       
134                <SucessConditions>
135                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="acknowledge"/>
136                </SucessConditions>             
137                <ExpectedEffects>
138                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
139                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
140                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
141                </ExpectedEffects>                     
142        </ActivePursuitGoal>
143       
144        <ActivePursuitGoal name="Goodbye([target],[item])">
145                <PreConditions>                 
146                        <Property name="[target](isPerson)" operator="=" value="True" />
147                        <Property name="[target]" operator="!=" value="[SELF]" />
148                        <Property name="[target](isPresent)" operator="=" value="True" />
149                        <RecentEvent occurred="True" subject="[target]" action="Accept" target="[SELF]" parameters="[item]"/>
150                </PreConditions>       
151                <SucessConditions>
152                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="goodbye,[item]"/>
153                </SucessConditions>             
154                <ExpectedEffects>
155                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
156                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
157                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
158                </ExpectedEffects>                     
159        </ActivePursuitGoal>
160       
161        <!-- Scenario 2 -->
162        <ActivePursuitGoal name="SwearSecrecy([target],[friend],[info])">
163                <PreConditions>                 
164                        <Property name="[target](isPerson)" operator="=" value="True" />
165                        <Property name="[target]" operator="!=" value="[SELF]" />
166                        <Property name="[target](isPresent)" operator="=" value="True" />
167                        <Property name="[target]([info],isSensitive)" operator="=" value="[friend]" />
168                        <RecentEvent occurred="True" subject="[target]" action="TellSensitiveInfo" target="[SELF]" parameters="[friend],[info]"/>
169                </PreConditions>       
170                <SucessConditions>
171                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="swearSecrecy,[friend]"/>
172                </SucessConditions>             
173                <ExpectedEffects>
174                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
175                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
176                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
177                </ExpectedEffects>                     
178        </ActivePursuitGoal>
179       
180        <ActivePursuitGoal name="ReplyHideInfo([target],[friend],[info])">
181                <PreConditions>                 
182                        <Property name="[target](isPerson)" operator="=" value="True" />
183                        <Property name="[target]" operator="!=" value="[SELF]" />
184                        <Property name="[target](isPresent)" operator="=" value="True" />
185                        <Property name="[friend](isPerson)" operator="=" value="True" />
186                        <Property name="[friend]([info],isSensitive)" operator="=" value="[target]" />
187                        <RecentEvent occurred="True" subject="[target]" action="Ask" target="[SELF]" parameters="[friend],[info]"/>
188                </PreConditions>       
189                <SucessConditions>
190                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="hideInfo"/>
191                </SucessConditions>             
192                <ExpectedEffects>
193                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
194                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
195                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
196                </ExpectedEffects>                     
197        </ActivePursuitGoal>
198       
199        <ActivePursuitGoal name="DontTellInfo([target],[friend],[info])">
200                <PreConditions>                 
201                        <Property name="[target](isPerson)" operator="=" value="True" />
202                        <Property name="[target]" operator="!=" value="[SELF]" />
203                        <Property name="[target](isPresent)" operator="=" value="True" />
204                        <Property name="[friend]([info],isSensitive)" operator="=" value="[agentX]" />
205                        <Property name="[agentX](isPresent)" operator="=" value="True" />
206                        <Property name="[friend](isPerson)" operator="=" value="True" />
207                        <Property name="[friend]([info],isSensitive)" operator="!=" value="[target]" />
208                        <RecentEvent occurred="False" subject="[SELF]" action="SpeechAct" target="[target]" parameters="[info],[friend]"/>
209                        <RecentEvent occurred="True" subject="[target]" action="Ask" target="[SELF]" parameters="[friend],[info]"/>
210                </PreConditions>       
211                <SucessConditions>
212                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="dontTell"/>
213                </SucessConditions>             
214                <ExpectedEffects>
215                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
216                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
217                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
218                </ExpectedEffects>                     
219        </ActivePursuitGoal>
220       
221        <ActivePursuitGoal name="ReplyTellInfo([target],[friend],[info])">
222                <PreConditions>                 
223                        <Property name="[target](isPerson)" operator="=" value="True" />
224                        <Property name="[target]" operator="!=" value="[SELF]" />
225                        <Property name="[target](isPresent)" operator="=" value="True" />
226                        <Property name="[friend]([info],isSensitive)" operator="=" value="[agentX]" />
227                        <Property name="[agentX](isPresent)" operator="=" value="False" />
228                        <Property name="[friend](isPerson)" operator="=" value="True" />
229                        <Property name="[friend]([info],isSensitive)" operator="!=" value="[target]" />
230                        <RecentEvent occurred="False" subject="[SELF]" action="SpeechAct" target="[target]" parameters="dontTell"/>
231                        <RecentEvent occurred="True" subject="[target]" action="Ask" target="[SELF]" parameters="[friend],[info]"/>
232                </PreConditions>       
233                <SucessConditions>
234                        <RecentEvent occurred="True" subject="[SELF]" action="SpeechAct" target="[target]" parameters="[info],[friend]"/>
235                </SucessConditions>             
236                <ExpectedEffects>
237                        <OnSelect drive="Affiliation" target="[SELF]" value="+3"/>
238                        <OnIgnore drive="Affiliation" target="[SELF]" value="-3"/>
239                        <OnSelect drive="Affiliation" target="[target]" value="+3"/>                   
240                </ExpectedEffects>                     
241        </ActivePursuitGoal>
242</GoalLibrary>
Note: See TracBrowser for help on using the repository browser.