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

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