Problems ADDING objects, v0.20

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: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Problems ADDING objects, v0.20

Post by Gambit37 »

Here's an interesting one!

I have created two clones of a square alcove with the necessary front and side bitmaps. They are called WALLITEM_ALCOVESWITCHOUT and WALLITEM_ALCOVESWITCHIN. Each alcove, as you might guess, works as an ordinary alcove but has a graphic that looks like there's a switch inside.

I want to toggle from one state to the other when the player clicks the alcove, so it looks like they've activated the switch. I use this script:
<pre> 617 WALLITEM_ALCOVESWITCHOUT 1 17 1 EAST STATE=(VISIBLE) OPBY=(MOUSE) ACTION=(TOGGLE)&nbsp &nbsp &nbsp &nbsp TARGET=(618) OPTIONS=(DESTROY_ITEM,DISABLE_SELF)618 WALLITEM_ALCOVESWITCHIN 1 17 1 EAST STATE=(INVISIBLE)</pre>
This does work kind of, but it doesn't toggle the 'in' state when you click the alcove. Instead, RTC displays a regular square alcove! It appears to have omitted the clone entirely, even though it's all correctly defined.

I've also tested that both states display correctly as static objects, and they do. So this appears to be a bug.

Secondary, and this is more a suggestion, this effect actually doesn't work very well anyway because if you're carrying an object when you click the switch/alcove, it activates the switch as well as dropping the item in the alcove. Is there perhaps a way of modifying this behaviour so that RTC ignores the switch click if you're holding an item? I.e - you must click the alcove with an empty hand, or remove all objects from the alcove, before you can click the switch?
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Problems ADDING objects, v0.20

Post by beowuuf »

I agree, and hand only object might be good

Howevrel for the second part (objects in alcove) can't you just have an alcove with a constant weight effect that stops the alcovewithswitch
Was unable to (permenantly) kill off ian_scho (Haynuus), Ameena, oh_brother (Westian), money (Falkor), raixel (Petal) and Lord_Bones (Aurek) in the DM D&D game Time's Champions!

CONGRATULATIONS TO THOSE WHO MADE THE GAME WHAT IT WAS - GREAT!
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Problems ADDING objects, v0.20

Post by Gambit37 »

Sorry mate, but I haven't a clue what you mean about the constant weight effect -- I don't see how that would help in this situation. Can you clarify?
User avatar
Gambit37
Should eat more pies
Posts: 13778
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Problems ADDING objects, v0.20

Post by Gambit37 »

George, was this fixed in v0.21--it's difficult to tell with my latest kid dungeon, cos I deleted a bunch of stuff...
Post Reply