Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 30/01/2007 10:28:12

Title: How can I add an item to my inventory using a dialog?
Post by: on Tue 30/01/2007 10:28:12
Here's my problem:

For example,
@S
MAC: "Want a watch?"
@1
EGO: "Yes."
return

I want that "Yes" to add an item to my inventory. How do I do that?
Title: Re: How can I add an item to my inventory using a dialog?
Post by: strazer on Tue 30/01/2007 10:33:14
add-inv X (http://www.adventuregamestudio.co.uk/manual/Conversations.htm)
Title: Re: How can I add an item to my inventory using a dialog?
Post by: Ashen on Tue 30/01/2007 10:55:07
You'll also want to put return after the "Want a watch?" line, otherwise the "Yes" bit will run automatically (meaning the player will get the watch whether they want it or not).

And please, READ THE MANUAL. AS strazer linked, this answer is in there.