Hi there,
i tried the ags for some days and beginnig to like it
but i stick with a simple question
how can i use a selected inventory item on a character?
ex.: i want to give character Lumberjack a bottle of beer and this triggers the lumberjack to dance!
Go to the Characters folder and in the "interactions" tree double-click -> "use inventory on character". In the appearing dialog choose from the drop down list "run script".
In the text edito that appears type:
if (character[player].activeinv==x) {
*** dance ***
}
else Display("I don't want to give it.");
where x is the number of the inventory item that represents the bottle, player is the script name of your hero and ***dance*** is the list of commands that you are going to use to make the character dance.
the (not necessary) else-clause will appear if you try to use some other item on the lumberjack.
Experiment a bit
Good luck!
Also it can make this without use script commands.
As Skio said, in character's interaction editor, choose "iuse inventory to characetr---> if inventory item was used ---> quick animation.....)
I mean, when the player use this item on his self, you can animate him like dancing. And then you can add any other functions that you wish.
Of course that is an alternative way, if you do not want to use script.
Good luck from me, too!
Thank you
i am going to try it, at once :-)