I had some code for giving objects to people, etc. and it worked fine. Then I wanted to add conversation using conversation package and I noticed the code for giving objects broke. Here is some sample code:
[code]Include Conversation Package by Eric Eve.
The block giving rule is not listed in the check giving it to rules.
Dining room is a room.
A dog is a kind of animal.
Fido is a dog in Dining room. “You see your dog, Fido, here.”
The player carries the beef jerky. The jerky is edible.
Every turn (this is the dogs eat food rule):
if Fido carries something edible:
try Fido eating a random edible thing carried by Fido.[/code]
And playthrough:
[code]Welcome
An Interactive Fiction
Release 1 / Serial number 110713 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD
Dining room
You see your dog, Fido, here.
rules
Rules tracing now switched on. Type “rules off” to switch it off again, or “rules all” to include even rules which do not apply.
actions
Actions listing on.
give jerky to fido
[giving the beef jerky to Fido]
[Rule “giving needs an interlocutor rule” applies.]
[(1) saying hello to Fido]
[Rule “note current interlocutor when greeted rule” applies.]
[Rule “standard report greeting rule” applies.]
[(1) saying hello to Fido - succeeded]
[Rule “note giving rule” applies.]
[Rule “can’t give what you haven’t got rule” applies.]
[Rule “can’t give to yourself rule” applies.]
[Rule “can’t give to a non-person rule” applies.]
[Rule “can’t give clothes being worn rule” applies.]
[Rule “open node response rule” applies.]
[Rule “standard response rule” applies.]
[Rule “default giving rule” applies.]
[Rule “try default give-show response rule” applies.]
[Rule “try default response rule” applies.]
Fido does not respond.
[giving the beef jerky to Fido - succeeded]
[/code]
The same code without the include conversation package works fine - Fido accepts the jerky. There doesn’t need to be any more detailed response than “You give the beef jerky to Fido.” which is what is given when conversation package is not included.
I want the conversation package for conversations with other characters (which will include giving items to them at certain points). How do I fix this? Also, why does it say [giving the beef jerky to Fido - succeeded] when it failed? I still have the jerky after issuing the command.