Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 30/06/2003 13:17:15

Title: Combine Objects
Post by: on Mon 30/06/2003 13:17:15
How do you COMBINE objects, Like in TUM or Caleb's Drunken Adventure?

I mean like Using a Can of Beer and a Mug and makes a Full Mug 0f Beer in the invertory?
Title: Re:Combine Objects
Post by: saanb on Mon 30/06/2003 13:46:13
@.@ just take both the can of beer and mug off the inventory(lose inventory) and put in a full mug of beer(add inventory). of course you'd have to make another inventory item with another sprite of a full mug of beer in addition to the can and empty mug.
Title: Re:Combine Objects
Post by: MillsJROSS on Mon 30/06/2003 15:55:28
I'll specify a little more than the above message.

Go into your inventory menu. Select one of the inventory items that you want to combine. Click on the interactions button for that item. Use the "Conditional, if inventory item was used" button. Verify which inventory item you want to interact with this item. Then afterwards, put what you want to do with it. You'll probably want to lose both previous inventory items and add a new combined one.

Now this will only work one way. Ex. InvItem1 when selected and clicked on InvItem2 will combine, but InvItem2 when selected and clicked on InvItem1 won't do anything. To solve this, simply make a similar script for the other inventory item. That way it doesn't matter which item the player has selected.

-MillsJROSS