Moving multiple objects (stack of similar objects)

Informers,

I’ve been trying things for awhile but can’t figure out how to do this in a simple way. Say I have an actor named Bob and “now Bob carries 3 sticks”. Now, in response to a player action, I want Bob to give the player all three sticks. I’ve tried the “now … carries …” pattern as well as the “move … to …” pattern but I can’t get them to work with a stack of objects.

Is there a quick way of doing this or do I have to loop through the object list?

Thanks,

Cab

now every stick carried by Bob is carried by the player;

That’s a neat way to spare an “if carried” check!
I tried the code, and got: “Problem. The sentence ‘now every stick carried by Bob is carried by the player’ seems to contain a value ‘stick’ which I can’t make any sense of”
If I replace “stick” with “thing” the code works fine, but of course also gives other objects. So even though the stick is a thing, I can’t seem to use it like one.
Below is the relevant code I used:

Bob is a man in the Cave. A stick is a thing. Bob is carrying 3 sticks.
Instead of asking Bob about "items":
	now every stick carried by Bob is carried by the player;

Ah, I think I see your problem. You haven’t defined ‘stick’ as a kind of thing, so when you said ‘3 sticks’, Inform created a single thing named ‘3 sticks’ rather than three seperate stick things.

If you define ‘stick’ as a kind, the code should work.

A stick is a kind of thing. Bob carries three sticks.

Thanks!
You’re right, now the code works!