Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Stasko on Tue 19/06/2007 23:07:45

Title: Inventory Dialog Reward Question!
Post by: Stasko on Tue 19/06/2007 23:07:45
Okay i have allready searches everywere but could not find the anser! I've got two Dialogs connect too each other.
But there is only one way too get too the last anser because i have placed a lot of stop commands in the dialogs!
But here is my question!

After the last good anser i want a reward in my inventory! But how can i do something like that? Do i have too put some script text in the dialog screen (would be easy) Or what?

Hopefully i can get my anser now. :(
Title: Re: Inventory Dialog Reward Question!
Post by: Ashen on Tue 19/06/2007 23:27:10
Read the manual. Conversations (http://www.adventuregamestudio.co.uk/manual/Conversations.htm) deals with Dialog scripting, and has this bit:

Quote
add-inv X
Adds inventory item X to the current player's inventory. This does the same thing as the AddInventory script command, but is provided here because it is frequently used in dialogs.


If you want to do something in a dialogue not covered by Dialog script, read the BFAQ. This entry (http://americangirlscouts.org/agswiki/Scripting%2C_Code_%26_Interaction#Running_regular_code_inside_dialog) deals with that.