The beginnings of dialogue. I think this points to a bug.
Chris Pressey
6 years ago
14 | 14 | // fenestration(?P) ?P is a prop that can be looked out of to the outside. |
15 | 15 | // near(?A,?P) ?A is an actor who is near or next to prop ?P. |
16 | 16 | // described(?P) ?P is a prop that has been described. |
17 | ||
18 | // topic(?T) ?T is a topic of conversation. | |
19 | // has-news(?A,?T) ?A has news which is ?T | |
17 | 20 | |
18 | 21 | // ----------------------------- RULES ------------------------ |
19 | 22 | |
45 | 48 | [actor(?A),near(?A,?P)] ?A examined the ?P closely. [] |
46 | 49 | |
47 | 50 | [prop(?P),!described(?P)] Nearby there was a ?P. [described(?P)] |
51 | ||
52 | [actor(?A),has-news(?A,?T),!exclaimed-has-news(?A,?T)] ?A exclaimed, "I have news!" [exclaimed-has-news(?A,?T)] | |
53 | [actor(?A),exclaimed-has-news(?B,?T),!heard-news(?A,?T)] ?A asked, "What is it, ?B?" [been-asked-about-news(?B,?T)] | |
48 | 54 | } |
49 | 55 | |
50 | 56 | // ----------------------------- SETTINGS ------------------------ |
97 | 103 | actor(Scurthorpe). |
98 | 104 | actor(Throgmorton). |
99 | 105 | |
106 | topic(impending_hurricane). | |
107 | has-news(Scurthorpe, impending_hurricane). | |
108 | ||
100 | 109 | shocked(Throgmorton). |
101 | 110 | |
102 | goal []. | |
111 | // goal [exclaimed-has-news(Scurthorpe, impending_hurricane)]. | |
112 | goal [been-asked-about-news(Scurthorpe, impending_hurricane)]. | |
103 | 113 | } |
104 | 114 | |
105 | 115 | scenario Scene_2 { |