Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: BerserkerTails on Mon 08/12/2003 04:18:14

Title: Using certain inventory items on hotspots...
Post by: BerserkerTails on Mon 08/12/2003 04:18:14
Another n00bish question from the most annoying n00b on the planet!  ;D

This is best described with an example...

Roger finds himself inside a blank room. On the floor is a triangle shape and a square shape, which he picks up. Now there's a door to get out of the room, but it's locked. Beside the door is a triangle-shaped hole. By using the triangle shape on the hole, the door is unlocked.

How do I make it so only using the triangle, and not the square, will open the door?

In other words, how to I make a puzzle solvable by using a specific inventory item on a specific place?

Thanks in advance!
Title: Re:Using certain inventory items on hotspots...
Post by: Gilbert on Mon 08/12/2003 04:26:51
Do this:

For the hotspot, add interaction for "Use inventory on hotspot", for the action choose "Conditional - if inventory item was used", then set the inventory item number to match the desired item.

After that, right-click on the "Conditional - if inventory item was used" action and choose "Add child action..." then do whatever you want there.