Objects ON and UNDER tables

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Objects ON and UNDER tables

Post 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.
User avatar
ian_scho
High Lord
Posts: 2806
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: Objects ON and UNDER tables

Post 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.
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Objects ON and UNDER tables

Post by Gambit37 »

Interesting. I'll have a go!
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Objects ON and UNDER tables

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Objects ON and UNDER tables

Post 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.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Objects ON and UNDER tables

Post 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.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Objects ON and UNDER tables

Post 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 ;-)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Objects ON and UNDER tables

Post 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
Post Reply