source: AgentMind/branches/FAtiMA-Modular/data/characters/minds/LIRECGoalLibrary.xml @ 914

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