when engaging in normal dialogue, how do you add an item to the characters inventory? you see, one part in my game, the character is talking to an NPC, and i want one of the NPC's responses to not only be a message (as in "here have this") but to also give the item. i have tried several methods, but even when i dont get errors in the dialouge, it still never works. thanks in advance!
From the AGS manual:
Quote
add-inv X
Adds inventory item X to the current player's inventory. This does the same thing as the AddInventory text script command, but is provided here because it is frequently used in dialogs.
So basically, when at some stage you want to add item, say, #10, to the player's inventory, just put the line:
add-inv 15to the dialog script.