Strange look bug

Elexxorine
28 Jan 2007, 16:12
Never seen this happen before I look at an object in the game and it prints out the look message for the room. But it only happens with one object in the room, none of the others. Any ideas?

witch wyzwurd
28 Jan 2007, 16:35
Have you looked at your asl code yet?

Elexxorine
28 Jan 2007, 16:38
I only code in asl, haven't used QDK in...... years. Anyway, I can't see why it's doing it. The code is simpley:
define object <name>
look <stuff>
end define
Pritty much, can't think why it's doing it. Oh and when I 'examine' the object it prints the right message, but I set examine to print the same as look at.....

007bond
29 Jan 2007, 06:19
you might have to email alex or someone else your asl file and get them to take a look at it.
What happened to MaDbRiT?

witch wyzwurd
29 Jan 2007, 15:56
Well, I'm sure you know that your object is encased in the define room/ end define room tags. So maybe you're missing a bracket somewhere or your object is named the same as your room or I'm confused why... can you paste more code surrounding the object code. As you know, the code you pasted is right. I'm sure your examine code works because you can't "examine room name."

Is "stuff" the same as "name"?

Elexxorine
30 Jan 2007, 17:00
KK.... this is my code....
define room <tcent, bed>
alias <Hospital Room>
look <The perfectly white room in which you woke up in. Your bed stands in the middle of the room mith the drip stand to one side. A table is by the door, which faces the bed. Upon it appears to be some papers. And lastly a mirror hangs from the door, giving off glare from the light.>
properties <inside; area=sip; garea=1; b_light=3; c_light=3; safe>

out <tcent, hall>

define object <tcent, bed>
alias <Bed>
look <A white bed, with painted white metal frames and thin bleached sheets, a clip board hangs from the end reading: '|cy|b#name[userid]#|xb, Gender: #(name[userid]):sex#, Race: #(name[userid]):form#.|cb'|n|nSo you seem to be #name[userid]#, at least you've got a name.>
properties <normal>
end define

define object <tcent, bedtable>
alias <Table>
look <A normal table made of a white wood, how conviant the hospital didn't have to paint it too.>
properties <normal>
end define

end define
The bed prints the room's look tag when looked at, but it's own when examined, the table acts correctly though....

Alex
30 Jan 2007, 18:49
Your object has the same name as the room for some reason - not a good idea.

If you change the name of the object, it should work properly.

witch wyzwurd
30 Jan 2007, 23:02
Me:

So maybe you're missing a bracket somewhere or your object is named the same as your room... I'm sure your examine code works because you can't "examine room name."


Alex:

Your object has the same name as the room for some reason - not a good idea.


I'm just feeling good over here about being able to help someone whose coding is more advanced than mine and about being reinforced by the person who made the code. I've come a long way :}

Elexxorine
31 Jan 2007, 12:40
Ha. Lol. It's the silly mistakes you don't spot. Thanks guys. Opps, I'm ment to be really good at this and then I go and do this... I thought I gave it a different name. Alex, shouldn't quest be seperating rooms and objects anyway, as I was never told that a room and an object couldn't have the same name, only rooms and objects in each group. Just wondering if quest can tell the difference between a room and object? lol. Thanks....

davidw
31 Jan 2007, 13:32
Shouldn’t there be an ambiguity prompt when that sort of thing happens? Like if you have a room called BED and an object called BED, it asks you to specify which one you mean.

Alex
31 Jan 2007, 13:59
Yes, QDK will stop you from doing this. I think elexxorine is coding by hand though?

Elexxorine
31 Jan 2007, 16:43
Haven't touched QDK in years, much easier to code by hand anyway... QDK is good for the easy stuff but some of the stuff I'm doing is far easier to do by hand rather than all those windows, lol.

davidw
31 Jan 2007, 17:21
Except when you call rooms and objects by the same name :)

Elexxorine
31 Jan 2007, 18:40
Ha, thanks. I *know* I made a really stupid mistake, stop reminding me.

Freak
03 Mar 2007, 17:11
I just tried reproducing this, and it didn't work. Were you using the system "look", or did you have a custom "look" command?

Elexxorine
05 Mar 2007, 13:45
Custom look.