EDITING: Releasing objects from cloned alcoves

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

EDITING: Releasing objects from cloned alcoves

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

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

Post 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!
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

D'oh merge the thread. ;)
Don't be scene or herd!
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Moved back -- the RELEASE stuff still isn't right so this post shouldn't be in the archive yet!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

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

Post 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.
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post by copperman »

Maybe you could do it with teleports. :D
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

Yeah, I did try a teleporter style too, but the objects shift slightly so it looks silly.
User avatar
copperman
Um Master
Posts: 476
Joined: Thu Aug 29, 2002 12:49 pm
Location: UK

Post 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.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Fixed for V0.33
Post Reply