Author Topic: Problem with LIB_DUMMY  (Read 1959 times)

Offline sircuri

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Problem with LIB_DUMMY
« on: October 12, 2006, 01:49:04 pm »
I have a problem using the LIB_DUMMY (/std/dummy.c) inherited object.



I have the following code snippet:



code:

inherit LIB_DUMMY;

void create(){
    dummy::create();
    SetKeyName("information pillar");
    SetId( ({"terminal", "pillar"}) );
    SetAdjectives( ({"information", "metal"}) );
    SetShort("an information terminal");
    SetLong("This is a brushed metal looking information terminal.");
}




The strange thing is that i can "look pillar", but i can't "look terminal"



When i change the code back to inherit the LIB_ITEM, i do can look at both "terminal" and "pillar". Anybody any idea why this is?



When i look at the dummy code, the SetId() function simply calls the id::SetId() function, so i don't see why this works different.



Thanks for the input.
The Never Ending Matrix

IP: 213.93.14.144, port: 4242

Offline sircuri

  • Acquaintance
  • *
  • Posts: 3
    • View Profile
Problem with LIB_DUMMY
« Reply #1 on: October 12, 2006, 04:20:25 pm »

Well, strange things do happen in the virtual world.



I cannot reproduce the issue anymore. But to make my object somewhat simpeler, i inherited LIB_ITEM again and added the GetVisible function to make it hidden.


The Never Ending Matrix

IP: 213.93.14.144, port: 4242