Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Matt Brown on Sat 16/08/2003 01:22:48

Title: adding invetnory from dialog
Post by: Matt Brown on Sat 16/08/2003 01:22:48
is this possible? is there a dialog script command I can use so when I player uses a certain topic, an inventory item is given?

if so, what is it, and where do I add it in the script?

thanks guys
Title: Re:adding invetnory from dialog
Post by: Wolfgang Abenteuer on Sat 16/08/2003 02:46:48
I believe the newest version of AGS has a dialogue function Add-inv X that will handle that for you.  For example:

@1
man: Here, have a cookie!
Add-inv 3 //Item number of the cookie
return

Edit:  Brain fart.  Add-inv was always there.  Lose-inv is the new addition. :P  So, yeah, the code above should work.

~Wolfgang
Title: Re:adding invetnory from dialog
Post by: TerranRich on Sun 17/08/2003 01:15:08
It's in the manual.

Manual, manual, manual.