Page 1 of 1

Objects ON and UNDER tables

Posted: Tue Dec 15, 2009 11:25 pm
by Gambit37
Is there a way of putting items under a table, as well as on the table? If you place an item in the editor on the same tile as a table, the engine automatically puts it ON the table.

Re: Objects ON and UNDER tables

Posted: Wed Dec 16, 2009 8:11 am
by ian_scho
First square that the party steps on causes a trigger to:
1) Teleport /Create your first object onto an empty square
2) Teleport /Create a table on said square
3) Teleport /Create your second object onto the table

Not tried it.

Re: Objects ON and UNDER tables

Posted: Wed Dec 16, 2009 11:04 am
by Gambit37
Interesting. I'll have a go!

Re: Objects ON and UNDER tables

Posted: Thu Dec 17, 2009 4:48 am
by Lord_BoNes
I do believe that it is based on the placement order of the items, items created before the table go on the floor, the rest go on the table. Unless I'm mistaken here, I think that items ABOVE the table in the list for the square go on the table, one's BELOW it on the list go under... but I may be wrong here.

Re: Objects ON and UNDER tables

Posted: Thu Dec 17, 2009 12:29 pm
by Gambit37
LB: order makes no difference -- the engine places the item on the table at runtime.

Ian: There doesn't seem to be a way of creating an item at an arbitrary location. There's only CREATE_NEW_ON_FLOOR which creates on the tile where the action took place. How do I get a CREATE action to take place on a designated tile at game startup?

EDIT: Pulling a table onto a square with objects on it, makes the objects jump onto the table! Clearly, we can't intercept this. Pretty silly actually, I'd say that's a bug and will report it.

Re: Objects ON and UNDER tables

Posted: Thu Dec 17, 2009 1:04 pm
by Lord_BoNes
To make a given tile activate on startup:
Clone a FUL_BOMB, set lifetime to -1, and setup your converts so it activates a relay.

Re: Objects ON and UNDER tables

Posted: Thu Dec 17, 2009 1:27 pm
by Gambit37
Aha, cool -- clever technique, thanks! :-)

I think for items under a table, I'm going to have to fake it using custom images and click events. Or simply not bother! In the gamebook I'm adapting, there are several rooms with a box under a table that you can sneak in and steal which I'd like to replicate, but it's honestly a lot of bother for such a simple puzzle. Think I'll just leave the box ON the table ;-)

Re: Objects ON and UNDER tables

Posted: Thu Dec 17, 2009 1:43 pm
by beowuuf
If you only want to pull it out, it does sound like you just want a cloned table with the chest drawing, and if you click on it, you get a menu (like pushing and pulling does) that asks if you want to take the box