The place to discuss the ADRIFT Interactive Fiction toolkit

Can this be done? - throwing out the garbage

Want to just chat amongst yourselves? Then this is the place when IF and ADRIFT are not the topic. Please keep your posts family friendly.

Postby brickman » Sat May 22, 2004 11:56 am

I'm trying to write a task to allow the player to throw objects in a trash bin. What I want is when the player throws something away to move it to hidden, but I don't know how to detect what they are tossing.
I wrote a task "put * * recycler" with action "move referenced object to hidden" but I'm pretty sure "referenced object" is going to be the recycler. Do I need a separate recycle task for every possible object in my game?
Posts: 5
Joined: Thu May 13, 2004 5:26 am

Postby Woodfish » Sat May 22, 2004 2:50 pm

You need the %object% reference.

So the task would be something like "put %object% in bin", with the action "Move referenced object (this will be whatever the player has typed as %object%) to Hidden".

You'll need a restriction "player must be holding referenced object" as well.
User avatar
Posts: 2035
Joined: Sun Jun 23, 2002 12:19 pm
Location: England

Postby brickman » Mon May 24, 2004 2:38 am

Thanks, woodfish, that did the trick ;/
Posts: 5
Joined: Thu May 13, 2004 5:26 am

Return to Drifting Off-Topic

Who is online

Users browsing this forum: No registered users and 1 guest