Page 1 of 1

EDITING: Releasing objects from cloned alcoves

Posted: Sat Jan 24, 2004 8:14 pm
by Gambit37
I have cloned a square alcove to use the DM2 graphics. I want it to exchange an object when the player puts a specific item in it:

Code: Select all

7a MISC_BOX_MAGIC_RED -1 -1 0 EAST CHARGE=(1)
7b DM2_ALCOVE_SQUARE 2 3 0 EAST OPBY=(MISC_BOX_MAGIC_RED_0,ON_ONLY) ACTION=(RELEASE) TARGET=(7a) OPTIONS=(DESTROY_ITEM)
It kind of works. When I place the item in the alcove, it doesn't change (no visible change anyway), and also the DM2 images vanish, and the old alcove is shown in it's place! If I then pick up the item, it is in fact the new replaced item, and also the DM2 alcove reappears!

Is this a bug or am I doing something wrong?

Posted: Mon Jan 26, 2004 1:31 pm
by Gambit37
Whoa, this is freaky! I haven't changed anything with this structure, but in my latest compile the problem with the alcove graphic disappearing has been fixed!

The release still doesn't quite work as expected -- I wanted the item to change as soon it's placed in the alcove, but it only changes when you reach in and grab it back.

Posted: Mon Jan 26, 2004 1:33 pm
by Gambit37
Ohhhhhhh, I *SEE * now......

I did change something and forgot about it. Until I changed them, the ALT bitmaps for my new alcove still specified the original DM images, so it was switching between old and new graphics...

DOH!

Posted: Mon Jan 26, 2004 6:33 pm
by copperman
D'oh merge the thread. ;)

Posted: Mon Jan 26, 2004 6:35 pm
by Gambit37
Moved back -- the RELEASE stuff still isn't right so this post shouldn't be in the archive yet!

Posted: Sun Jun 20, 2004 12:41 pm
by George Gilbert
Hmmm - I think the code is doing what it should be, but I can see that it's confusing.

Can I check that the behaviour you think should happen, is that placing a random object in to the alcove just means that that object sits in the alcove. Placing a special object though (the red_0 box) means that it gets replaced with the red box (and your hand is empty).

Posted: Sun Jun 20, 2004 1:26 pm
by Gambit37
Yes, normal objects should just sit there, special objects should change. However:
The release still doesn't quite work as expected -- I wanted the item to change as soon it's placed in the alcove, but it only changes when you reach in and grab it back.

Posted: Sun Jun 20, 2004 4:25 pm
by copperman
Maybe you could do it with teleports. :D

Posted: Sun Jun 20, 2004 5:32 pm
by Gambit37
Yeah, I did try a teleporter style too, but the objects shift slightly so it looks silly.

Posted: Mon Jun 21, 2004 12:17 am
by copperman
OK, sticking with the teleporter idea, use a delay between the "placement" and the "release" with, maybe a zap to signify a change. Uh I dunno.

Posted: Fri Jan 28, 2005 4:25 pm
by George Gilbert
Fixed for V0.33