Author Topic: adding invetnory from dialog  (Read 930 times)

Matt Brown

  • the poster formally known as Panda
adding invetnory from dialog
« on: 16 Aug 2003, 01:22 »
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
word up

Re:adding invetnory from dialog
« Reply #1 on: 16 Aug 2003, 02:46 »
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
« Last Edit: 16 Aug 2003, 02:53 by Wolfgang Abenteuer »

TerranRich

  • I'm Terran Riiiick!
    • I can help with characters
    • I can help with proof reading
    • I can help with story design
    • I can help with translating
    • I can help with voice acting
    • I can help with web design
    • TerranRich worked on one or more games that was nominated for an AGS Award!
Re:adding invetnory from dialog
« Reply #2 on: 17 Aug 2003, 01:15 »
It's in the manual.

Manual, manual, manual.
Status: Trying to come up with some ideas...