Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: TerranRich on Thu 02/10/2003 17:12:00

Title: Little question about interactions with inventory
Post by: TerranRich on Thu 02/10/2003 17:12:00
Say you have an interaction "Use inventory on this inventory item" in AGS. If you add a Conditional to test for one certain item, and if another item was used, will the unhandled_event function still run?
Title: Re:Little question about interactions with inventory
Post by: Ishmael on Thu 02/10/2003 19:00:14
No, I think, since in P:DA for example you can tell if an inventory item can be used with other inv items, since you don't get the message. Has this been changed in 2.56?
Title: Re:Little question about interactions with inventory
Post by: Kweepa on Fri 03/10/2003 17:08:57
You have to call unhandled_event() manually if it's not the object you're looking for.
Title: Re:Little question about interactions with inventory
Post by: TerranRich on Fri 03/10/2003 18:34:01
Damn, that's what I figured.

CJ, can this be implemented somehow? Where unhandled_event is automatically called when a certain inventory item is used that is not captured by a Conditional? Or is this not feasible?
Title: Re:Little question about interactions with inventory
Post by: Kweepa on Fri 03/10/2003 18:47:35
I say you bite the bullet and use a text script for everything.
I think you'll be happy you did in the long run - they're just so much more flexible.
Title: Re:Little question about interactions with inventory
Post by: Pumaman on Fri 03/10/2003 18:50:38
This used to be the case, however it was fixed in v2.54.

So long as you use Interaction Editor conditionals, it should work fine.

If you use a Run Script response for processing the inventory items, you still need to call unhandled_event manually.
Title: Re:Little question about interactions with inventory
Post by: TerranRich on Fri 03/10/2003 19:00:59
Excellent! I am using the interaction editor and the Conditional commands. :D Thanks, CJ!
Title: Re:Little question about interactions with inventory
Post by: Kweepa on Fri 03/10/2003 19:21:28
Sorry about the misdirection - I guess I should have tested that more carefully.