Little question about interactions with inventory

Started by TerranRich, Thu 02/10/2003 17:12:00

Previous topic - Next topic

TerranRich

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?
Status: Trying to come up with some ideas...

Ishmael

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?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Kweepa

You have to call unhandled_event() manually if it's not the object you're looking for.
Still waiting for Purity of the Surf II

TerranRich

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?
Status: Trying to come up with some ideas...

Kweepa

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.
Still waiting for Purity of the Surf II

Pumaman

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.

TerranRich

Excellent! I am using the interaction editor and the Conditional commands. :D Thanks, CJ!
Status: Trying to come up with some ideas...

Kweepa

Sorry about the misdirection - I guess I should have tested that more carefully.
Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk