textadventures / quest

Create text adventure games
http://textadventures.co.uk/quest
MIT License
303 stars 68 forks source link

Run scripts after putting an object on another #186

Open alexwarren opened 10 years ago

alexwarren commented 10 years ago

We currently have scripts that can be run after opening, closing, taking, dropping etc. Request is to add scripts to run after putting an object on another one - I suppose this needs to work in a similar way to the "use" and "give" scripts, having a dictionary of objects, and scripts to run after one is put on the current object. Also a script to run after putting any object on the object.

Work Item Details

Original CodePlex Issue: Issue 811 Status: Proposed Reason Closed: Unassigned Assigned to: Unassigned Reported on: Jul 29, 2011 at 2:57 PM Reported by: alexwarren Updated on: May 9, 2012 at 5:50 PM Updated by: alexwarren

alexwarren commented 10 years ago

On 2011-07-30 02:10:43 UTC, xordevoreaux commented:

And in as well as on. Any time you make an object the child of another or remove it from being the child of another.

alexwarren commented 10 years ago

On 2011-07-30 02:11:00 UTC, xordevoreaux commented:

in I mean.

alexwarren commented 10 years ago

On 2011-07-30 02:47:26 UTC, Jhames commented:

I agree

alexwarren commented 8 years ago

We already have changedparent which a child object can use to monitor itself being moved around. Could add new scripts addedchild and removedchild which would be triggered on the new and old parent.